Tweak the display of incoming foreign-key constraints in \d, per discussion
authorPeter Eisentraut <[email protected]>
Sat, 13 Jun 2009 13:43:34 +0000 (13:43 +0000)
committerPeter Eisentraut <[email protected]>
Sat, 13 Jun 2009 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.

src/bin/psql/describe.c

index dba95b8e9c6ad918b328939d089c8949cc68447a..65d22f2b1525ad7a4eeaefb2e732a328dc10303d 100644 (file)
@@ -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);