Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit215ea9b

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, sinceit's now entirely pseudo-SQL.
1 parenta0a3883 commit215ea9b

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)

[8]ページ先頭

©2009-2025 Movatter.jp