summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut2009-06-13 13:43:34 +0000
committerPeter Eisentraut2009-06-13 13:43:34 +0000
commitf9a35dc02dda1bef22d546bbdc793651464f4eb3 (patch)
tree2210a11dadd3c9eb8bba13fa87461d3f2f5a90bd
parent87a59e94c89d4afc4e89104cc16e3003a1728512 (diff)
Tweak the display of incoming foreign-key constraints in \d, per discussion
on hackers. Also, take that string out of the translation roster, since it's now entirely pseudo-SQL.
-rw-r--r--src/bin/psql/describe.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/bin/psql/describe.c b/src/bin/psql/describe.c
index dba95b8e9c..65d22f2b15 100644
--- a/src/bin/psql/describe.c
+++ b/src/bin/psql/describe.c
@@ -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);