aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2007-02-20 10:23:38 +0000
committerPeter Eisentraut <peter_e@gmx.net>2007-02-20 10:23:38 +0000
commit28b96f2a30d79d2c6bfc4796fa1bb76d0ff027e8 (patch)
treeabda26ea9289a9b2915ea8dd1d8730ecbacddc02 /src
parent63e03ba92384eb9e4fd3bf11071383950c3637c0 (diff)
downloadpostgresql-28b96f2a30d79d2c6bfc4796fa1bb76d0ff027e8.tar.gz
postgresql-28b96f2a30d79d2c6bfc4796fa1bb76d0ff027e8.zip
Identify schema of inherited table in psql \d when necessary.
by Bernd Helmle
Diffstat (limited to 'src')
-rw-r--r--src/bin/psql/describe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/psql/describe.c b/src/bin/psql/describe.c
index 3e830d9eb9a..62fde7cbe4a 100644
--- a/src/bin/psql/describe.c
+++ b/src/bin/psql/describe.c
@@ -3,7 +3,7 @@
*
* Copyright (c) 2000-2007, PostgreSQL Global Development Group
*
- * $PostgreSQL: pgsql/src/bin/psql/describe.c,v 1.151 2007/02/14 01:58:58 tgl Exp $
+ * $PostgreSQL: pgsql/src/bin/psql/describe.c,v 1.152 2007/02/20 10:23:38 petere Exp $
*/
#include "postgres_fe.h"
#include "describe.h"
@@ -1188,7 +1188,7 @@ describeOneTableDetails(const char *schemaname,
}
/* count inherited tables */
- printfPQExpBuffer(&buf, "SELECT c.relname FROM pg_catalog.pg_class c, pg_catalog.pg_inherits i WHERE c.oid=i.inhparent AND i.inhrelid = '%s' ORDER BY inhseqno ASC", oid);
+ printfPQExpBuffer(&buf, "SELECT c.oid::regclass FROM pg_catalog.pg_class c, pg_catalog.pg_inherits i WHERE c.oid=i.inhparent AND i.inhrelid = '%s' ORDER BY inhseqno ASC", oid);
result6 = PSQLexec(buf.data, false);
if (!result6)