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: a0a3883)
Tweak the display of incoming foreign-key constraints in \d, per discussion
2009年6月13日 13:43:34 +0000 (13:43 +0000)
2009年6月13日 13:43:34 +0000 (13:43 +0000)
on hackers. Also, take that string out of the translation roster, since
it's now entirely pseudo-SQL.


diff --git a/src/bin/psql/describe.c b/src/bin/psql/describe.c
index d5236cae42b1588aba70514a8bdea31e1f5cc82d..cde2428259dd0468465c7488c29a00451a98a67a 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.217 2009年06月12日 16:17:29 tgl Exp $
+ * $PostgreSQL: pgsql/src/bin/psql/describe.c,v 1.218 2009年06月13日 13:43:34 petere Exp $
*/
#include "postgres_fe.h"
@@ -1572,13 +1572,9 @@ describeOneTableDetails(const char *schemaname,
printTableAddFooter(&cont, _("Referenced by:"));
for (i = 0; i < tuples; i++)
{
- /*
- * translator: the first %s is a FK name, the following
- * are a table name and the FK definition
- */
- printfPQExpBuffer(&buf, _(" \"%s\" IN %s %s"),
- PQgetvalue(result, i, 0),
+ printfPQExpBuffer(&buf, " TABLE \"%s\" CONSTRAINT \"%s\" %s",
PQgetvalue(result, i, 1),
+ PQgetvalue(result, i, 0),
PQgetvalue(result, i, 2));
printTableAddFooter(&cont, buf.data);
This is the main PostgreSQL git repository.
RSS Atom

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