Content-Length: 274644 | pFad | http://github.com/postgrespro/postgres/commit/28b96f2a30d79d2c6bfc4796fa1bb76d0ff027e8

98 Identify schema of inherited table in psql \d when necessary. · postgrespro/postgres@28b96f2 · GitHub
Skip to content

Commit 28b96f2

Browse files
committed
Identify schema of inherited table in psql \d when necessary.
by Bernd Helmle
1 parent 63e03ba commit 28b96f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/psql/describe.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright (c) 2000-2007, PostgreSQL Global Development Group
55
*
6-
* $PostgreSQL: pgsql/src/bin/psql/describe.c,v 1.151 2007/02/14 01:58:58 tgl Exp $
6+
* $PostgreSQL: pgsql/src/bin/psql/describe.c,v 1.152 2007/02/20 10:23:38 petere Exp $
77
*/
88
#include "postgres_fe.h"
99
#include "describe.h"
@@ -1188,7 +1188,7 @@ describeOneTableDetails(const char *schemaname,
11881188
}
11891189

11901190
/* count inherited tables */
1191-
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);
1191+
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);
11921192

11931193
result6 = PSQLexec(buf.data, false);
11941194
if (!result6)

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/28b96f2a30d79d2c6bfc4796fa1bb76d0ff027e8

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy