aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2019-01-28 22:02:45 +0100
committerPeter Eisentraut <peter@eisentraut.org>2019-01-28 22:02:45 +0100
commitd4316b87bb8ec7a0ea04fb5fbc18f34a6799fe3f (patch)
tree32c081cf1e522422f936218b3c9ba091414fd8d6 /src
parentbcf3f00be515c1da76b1d88923d01a78862467d3 (diff)
downloadpostgresql-d4316b87bb8ec7a0ea04fb5fbc18f34a6799fe3f.tar.gz
postgresql-d4316b87bb8ec7a0ea04fb5fbc18f34a6799fe3f.zip
psql: Remove unused tab completion query
This was used for the old CLUSTER syntax, has been unused since e55c8e36ae44677dca4420bed07ad09d191fdf6c.
Diffstat (limited to 'src')
-rw-r--r--src/bin/psql/tab-complete.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/bin/psql/tab-complete.c b/src/bin/psql/tab-complete.c
index 3361c8394d8..7b7a88fda34 100644
--- a/src/bin/psql/tab-complete.c
+++ b/src/bin/psql/tab-complete.c
@@ -696,15 +696,6 @@ static const SchemaQuery Query_for_list_of_statistics = {
" UNION ALL SELECT 'SESSION_USER'"
/* the silly-looking length condition is just to eat up the current word */
-#define Query_for_table_owning_index \
-"SELECT pg_catalog.quote_ident(c1.relname) "\
-" FROM pg_catalog.pg_class c1, pg_catalog.pg_class c2, pg_catalog.pg_index i"\
-" WHERE c1.oid=i.indrelid and i.indexrelid=c2.oid"\
-" and (%d = pg_catalog.length('%s'))"\
-" and pg_catalog.quote_ident(c2.relname)='%s'"\
-" and pg_catalog.pg_table_is_visible(c2.oid)"
-
-/* the silly-looking length condition is just to eat up the current word */
#define Query_for_index_of_table \
"SELECT pg_catalog.quote_ident(c2.relname) "\
" FROM pg_catalog.pg_class c1, pg_catalog.pg_class c2, pg_catalog.pg_index i"\