8000 This makes psql use the new pg_get_viewdef function. It also puts one · codeimmortal/postgres@cf3cc75 · GitHub
[go: up one dir, main page]

Skip to content

Commit cf3cc75

Browse files
committed
This makes psql use the new pg_get_viewdef function. It also puts one
extra line break in to improve formatting. Christopher Kings-Lynne
1 parent 4678577 commit cf3cc75

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/bin/psql/describe.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright (c) 2000-2003, PostgreSQL Global Development Group
55
*
6-
* $Header: /cvsroot/pgsql/src/bin/psql/describe.c,v 1.83 2003/08/04 23:59:40 tgl Exp $
6+
* $Header: /cvsroot/pgsql/src/bin/psql/describe.c,v 1.84 2003/08/09 01:21:54 momjian Exp $
77
*/
88
#include "postgres_fe.h"
99
#include "describe.h"
@@ -746,7 +746,7 @@ describeOneTableDetails(const char *schemaname,
746746
{
747747
PGresult *result;
748748

749-
printfPQExpBuffer(&buf, "SELECT pg_catalog.pg_get_viewdef('%s'::pg_catalog.oid)", oid);
749+
printfPQExpBuffer(&buf, "SELECT pg_catalog.pg_get_viewdef('%s'::pg_catalog.oid, true)", oid);
750750
result = PSQLexec(buf.data, false);
751751
if (!result)
752752
goto error_return;
@@ -926,7 +926,7 @@ describeOneTableDetails(const char *schemaname,
926926
footers = xmalloczero((rule_count + 2) * sizeof(*footers));
927927
footers[count_footers] = xmalloc(64 + strlen(view_def));
928928
snprintf(footers[count_footers], 64 + strlen(view_def),
929-
_("View definition: %s"), view_def);
929+
_("View definition:\n%s"), view_def);
930930
count_footers++;
931931

932932
/* print rules */

0 commit comments

Comments
 (0)
0