Skip to content

Commit 215ea9b

Browse files
committed
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.
1 parent a0a3883 commit 215ea9b

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/bin/psql/describe.c

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
* Copyright (c) 2000-2009, PostgreSQL Global Development Group
1010
*
11-
* $PostgreSQL: pgsql/src/bin/psql/describe.c,v 1.217 2009/06/12 16:17:29 tgl Exp $
11+
* $PostgreSQL: pgsql/src/bin/psql/describe.c,v 1.218 2009/06/13 13:43:34 petere Exp $
1212
*/
1313
#include "postgres_fe.h"
1414

@@ -1572,13 +1572,9 @@ describeOneTableDetails(const char *schemaname,
15721572
printTableAddFooter(&cont, _("Referenced by:"));
15731573
for (i = 0; i < tuples; i++)
15741574
{
1575-
/*
1576-
* translator: the first %s is a FK name, the following
1577-
* are a table name and the FK definition
1578-
*/
1579-
printfPQExpBuffer(&buf, _(" \"%s\" IN %s %s"),
1580-
PQgetvalue(result, i, 0),
1575+
printfPQExpBuffer(&buf, " TABLE \"%s\" CONSTRAINT \"%s\" %s",
15811576
PQgetvalue(result, i, 1),
1577+
PQgetvalue(result, i, 0),
15821578
PQgetvalue(result, i, 2));
15831579

15841580
printTableAddFooter(&cont, buf.data);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy