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

Commit9872812

Browse files
committed
Sort child tables by name instead of OID in \d+ display
This was an oversight in the recent patch. Found by Tom Lane.
1 parent8fe8ac5 commit9872812

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
@@ -8,7 +8,7 @@
88
*
99
* Copyright (c) 2000-2009, PostgreSQL Global Development Group
1010
*
11-
* $PostgreSQL: pgsql/src/bin/psql/describe.c,v 1.221 2009/07/0716:28:38 tgl Exp $
11+
* $PostgreSQL: pgsql/src/bin/psql/describe.c,v 1.222 2009/07/0719:05:57 petere Exp $
1212
*/
1313
#include"postgres_fe.h"
1414

@@ -1821,7 +1821,7 @@ describeOneTableDetails(const char *schemaname,
18211821
PQclear(result);
18221822

18231823
/* print child tables */
1824-
printfPQExpBuffer(&buf,"SELECT c.oid::pg_catalog.regclass FROM pg_catalog.pg_class c, pg_catalog.pg_inherits i WHERE c.oid=i.inhrelid AND i.inhparent = '%s' ORDER BY c.oid::pg_catalog.regclass;",oid);
1824+
printfPQExpBuffer(&buf,"SELECT c.oid::pg_catalog.regclass FROM pg_catalog.pg_class c, pg_catalog.pg_inherits i WHERE c.oid=i.inhrelid AND i.inhparent = '%s' ORDER BY c.oid::pg_catalog.regclass::text;",oid);
18251825

18261826
result=PSQLexec(buf.data, false);
18271827
if (!result)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp