diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2009-06-13 13:43:34 +0000 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2009-06-13 13:43:34 +0000 |
commit | 215ea9b45503a2ab73033869012ce7fecd4db35b (patch) | |
tree | 1be8dd1d73663e33a76a9097f2acb6ed840c177e | |
parent | a0a3883dd977d6618899ccd14258a0696912a9d2 (diff) | |
download | postgresql-215ea9b45503a2ab73033869012ce7fecd4db35b.tar.gz postgresql-215ea9b45503a2ab73033869012ce7fecd4db35b.zip |
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.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/bin/psql/describe.c b/src/bin/psql/describe.c index d5236cae42b..cde2428259d 100644 --- 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); |