projects
/
users
/
simon
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87a59e9
)
Tweak the display of incoming foreign-key constraints in \d, per discussion
author
Peter Eisentraut
<
[email protected]
>
Sat, 13 Jun 2009 13:43:34 +0000
(13:43 +0000)
committer
Peter Eisentraut
<
[email protected]
>
Sat, 13 Jun 2009 13:43:34 +0000
(13:43 +0000)
on hackers. Also, take that string out of the translation roster, since
it's now entirely pseudo-SQL.
src/bin/psql/describe.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/psql/describe.c
b/src/bin/psql/describe.c
index dba95b8e9c6ad918b328939d089c8949cc68447a..65d22f2b1525ad7a4eeaefb2e732a328dc10303d 100644
(file)
--- 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);