Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit28b96f2

Browse files
committed
Identify schema of inherited table in psql \d when necessary.
by Bernd Helmle
1 parent63e03ba commit28b96f2

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)

[8]ページ先頭

©2009-2025 Movatter.jp