git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8fe8ac5)
Sort child tables by name instead of OID in \d+ display
Tue, 7 Jul 2009 19:05:57 +0000 (19:05 +0000)
Tue, 7 Jul 2009 19:05:57 +0000 (19:05 +0000)
This was an oversight in the recent patch. Found by Tom Lane.


diff --git a/src/bin/psql/describe.c b/src/bin/psql/describe.c
index be864780a648d6dff49b59486204d3fff77cc43b..80b4bd5e9d723e6030e224bf1e3be660be49a90a 100644 (file)
--- a/src/bin/psql/describe.c
+++ b/src/bin/psql/describe.c
@@ -8,7 +8,7 @@
*
* Copyright (c) 2000-2009, PostgreSQL Global Development Group
*
- * $PostgreSQL: pgsql/src/bin/psql/describe.c,v 1.221 2009年07月07日 16:28:38 tgl Exp $
+ * $PostgreSQL: pgsql/src/bin/psql/describe.c,v 1.222 2009年07月07日 19:05:57 petere Exp $
*/
#include "postgres_fe.h"
@@ -1821,7 +1821,7 @@ describeOneTableDetails(const char *schemaname,
PQclear(result);
/* print child tables */
- 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);
+ 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);
result = PSQLexec(buf.data, false);
if (!result)
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /