@@ -897,14 +897,16 @@ psql_completion(const char *text, int start, int end)
897
897
898
898
static const char * const backslash_commands []= {
899
899
"\\a" ,"\\connect" ,"\\conninfo" ,"\\C" ,"\\cd" ,"\\copy" ,"\\copyright" ,
900
- "\\d" ,"\\da" ,"\\db" ,"\\dc" ,"\\dC" ,"\\dd" ,"\\dD" ,"\\des" ,"\\det" ,"\\deu" ,"\\dew" ,"\\df" ,
900
+ "\\d" ,"\\da" ,"\\db" ,"\\dc" ,"\\dC" ,"\\dd" ,"\\ddp" ,"\\dD" ,
901
+ "\\des" ,"\\det" ,"\\deu" ,"\\dew" ,"\\dE" ,"\\df" ,
901
902
"\\dF" ,"\\dFd" ,"\\dFp" ,"\\dFt" ,"\\dg" ,"\\di" ,"\\dl" ,"\\dL" ,
902
- "\\dn" ,"\\do" ,"\\dp" ,"\\drds" ,"\\ds" ,"\\dS" ,"\\dt" ,"\\dT" ,"\\dv" ,"\\du" ,"\\dx" ,
903
+ "\\dm" ,"\\dn" ,"\\do" ,"\\dO" ,"\\dp" ,"\\drds" ,"\\ds" ,"\\dS" ,
904
+ "\\dt" ,"\\dT" ,"\\dv" ,"\\du" ,"\\dx" ,"\\dy" ,
903
905
"\\e" ,"\\echo" ,"\\ef" ,"\\encoding" ,
904
906
"\\f" ,"\\g" ,"\\gset" ,"\\h" ,"\\help" ,"\\H" ,"\\i" ,"\\ir" ,"\\l" ,
905
907
"\\lo_import" ,"\\lo_export" ,"\\lo_list" ,"\\lo_unlink" ,
906
908
"\\o" ,"\\p" ,"\\password" ,"\\prompt" ,"\\pset" ,"\\q" ,"\\qecho" ,"\\r" ,
907
- "\\set" ,"\\sf" ,"\\t" ,"\\T" ,
909
+ "\\s" , "\\ set" , "\\setenv " ,"\\sf" ,"\\t" ,"\\T" ,
908
910
"\\timing" ,"\\unset" ,"\\x" ,"\\w" ,"\\watch" ,"\\z" ,"\\!" ,NULL
909
911
};
910
912
@@ -3791,6 +3793,10 @@ psql_completion(const char *text, int start, int end)
3791
3793
COMPLETE_WITH_QUERY (Query_for_list_of_extensions );
3792
3794
else if (strncmp (prev_wd ,"\\dm" ,strlen ("\\dm" ))== 0 )
3793
3795
COMPLETE_WITH_SCHEMA_QUERY (Query_for_list_of_matviews ,NULL );
3796
+ else if (strncmp (prev_wd ,"\\dE" ,strlen ("\\dE" ))== 0 )
3797
+ COMPLETE_WITH_SCHEMA_QUERY (Query_for_list_of_foreign_tables ,NULL );
3798
+ else if (strncmp (prev_wd ,"\\dy" ,strlen ("\\dy" ))== 0 )
3799
+ COMPLETE_WITH_QUERY (Query_for_list_of_event_triggers );
3794
3800
3795
3801
/* must be at end of \d list */
3796
3802
else if (strncmp (prev_wd ,"\\d" ,strlen ("\\d" ))== 0 )