From f9a35dc02dda1bef22d546bbdc793651464f4eb3 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Sat, 13 Jun 2009 13:43:34 +0000 Subject: [PATCH] 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. --- src/bin/psql/describe.c | 8 ++------ 1 file 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); -- 2.39.5