Skip to content

Commit d4316b8

Browse files
committed
psql: Remove unused tab completion query
This was used for the old CLUSTER syntax, has been unused since e55c8e3.
1 parent bcf3f00 commit d4316b8

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/bin/psql/tab-complete.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -695,15 +695,6 @@ static const SchemaQuery Query_for_list_of_statistics = {
695695
" UNION ALL SELECT 'CURRENT_USER'"\
696696
" UNION ALL SELECT 'SESSION_USER'"
697697

698-
/* the silly-looking length condition is just to eat up the current word */
699-
#define Query_for_table_owning_index \
700-
"SELECT pg_catalog.quote_ident(c1.relname) "\
701-
" FROM pg_catalog.pg_class c1, pg_catalog.pg_class c2, pg_catalog.pg_index i"\
702-
" WHERE c1.oid=i.indrelid and i.indexrelid=c2.oid"\
703-
" and (%d = pg_catalog.length('%s'))"\
704-
" and pg_catalog.quote_ident(c2.relname)='%s'"\
705-
" and pg_catalog.pg_table_is_visible(c2.oid)"
706-
707698
/* the silly-looking length condition is just to eat up the current word */
708699
#define Query_for_index_of_table \
709700
"SELECT pg_catalog.quote_ident(c2.relname) "\

0 commit comments

Comments
 (0)