summaryrefslogtreecommitdiff
path: root/src/bin/psql
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2006-05-28 02:27:08 +0000
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2006-05-28 02:27:08 +0000
commit3d58a1c168fafd4e31ba3ab2da1f83ee0ae03ab4 (patch)
tree58afe34a1f3e3c04565984167bdc10a8b1f86ad4 /src/bin/psql
parent22b118b530154c386d850bfe533c6609568724c5 (diff)
downloadpostgresql-3d58a1c168fafd4e31ba3ab2da1f83ee0ae03ab4.tar.gz
Remove traces of otherwise unused RELKIND_SPECIAL symbol. Leave the psql bits
in place though, so that it plays nicely with older servers. Per discussion.
Diffstat (limited to 'src/bin/psql')
-rw-r--r--src/bin/psql/describe.c7
-rw-r--r--src/bin/psql/tab-complete.c6
2 files changed, 11 insertions, 2 deletions
diff --git a/src/bin/psql/describe.c b/src/bin/psql/describe.c
index d2c808f583..44d16a4e4e 100644
--- a/src/bin/psql/describe.c
+++ b/src/bin/psql/describe.c
@@ -3,7 +3,7 @@
*
* Copyright (c) 2000-2006, PostgreSQL Global Development Group
*
- * $PostgreSQL: pgsql/src/bin/psql/describe.c,v 1.135 2006/05/26 23:48:54 momjian Exp $
+ * $PostgreSQL: pgsql/src/bin/psql/describe.c,v 1.136 2006/05/28 02:27:08 alvherre Exp $
*/
#include "postgres_fe.h"
#include "describe.h"
@@ -881,6 +881,7 @@ describeOneTableDetails(const char *schemaname,
schemaname, relationname);
break;
case 's':
+ /* not used as of 8.2, but keep it for backwards compatibility */
printfPQExpBuffer(&title, _("Special relation \"%s.%s\""),
schemaname, relationname);
break;
@@ -1471,6 +1472,10 @@ listTables(const char *tabtypes, const char *pattern, bool verbose)
initPQExpBuffer(&buf);
+ /*
+ * Note: as of Pg 8.2, we no longer use relkind 's', but we keep it here
+ * for backwards compatibility.
+ */
printfPQExpBuffer(&buf,
"SELECT n.nspname as \"%s\",\n"
" c.relname as \"%s\",\n"
diff --git a/src/bin/psql/tab-complete.c b/src/bin/psql/tab-complete.c
index ad8f0f841b..653e57023d 100644
--- a/src/bin/psql/tab-complete.c
+++ b/src/bin/psql/tab-complete.c
@@ -3,7 +3,7 @@
*
* Copyright (c) 2000-2006, PostgreSQL Global Development Group
*
- * $PostgreSQL: pgsql/src/bin/psql/tab-complete.c,v 1.151 2006/04/30 21:15:33 tgl Exp $
+ * $PostgreSQL: pgsql/src/bin/psql/tab-complete.c,v 1.152 2006/05/28 02:27:08 alvherre Exp $
*/
/*----------------------------------------------------------------------
@@ -370,6 +370,10 @@ static const SchemaQuery Query_for_list_of_views = {
" UNION ALL SELECT 'all') ss "\
" WHERE substring(name,1,%d)='%s'"
+/*
+ * Note: As of Pg 8.2, we no longer use relkind 's', but we keep it here
+ * for compatibility with older servers
+ */
#define Query_for_list_of_system_relations \
"SELECT pg_catalog.quote_ident(relname) "\
" FROM pg_catalog.pg_class c, pg_catalog.pg_namespace n "\