Commit 215ea9b4 authored by Peter Eisentraut's avatar Peter Eisentraut

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.
parent a0a3883d
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment