1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-28 23:42:10 +03:00

Make \dFt and \dFt+ do something different --- omitting the function

names in the former case seems more consistent with the behavior of
other \dF commands.
This commit is contained in:
Tom Lane
2007-08-22 02:25:34 +00:00
parent d321421d0a
commit b2a52b3b80

View File

@ -3,7 +3,7 @@
* *
* Copyright (c) 2000-2007, PostgreSQL Global Development Group * Copyright (c) 2000-2007, PostgreSQL Global Development Group
* *
* $PostgreSQL: pgsql/src/bin/psql/describe.c,v 1.158 2007/08/21 01:11:22 tgl Exp $ * $PostgreSQL: pgsql/src/bin/psql/describe.c,v 1.159 2007/08/22 02:25:34 tgl Exp $
*/ */
#include "postgres_fe.h" #include "postgres_fe.h"
#include "describe.h" #include "describe.h"
@ -2227,18 +2227,28 @@ listTSTemplates(const char *pattern, bool verbose)
initPQExpBuffer(&buf); initPQExpBuffer(&buf);
printfPQExpBuffer(&buf, if (verbose)
"SELECT \n" printfPQExpBuffer(&buf,
" n.nspname AS \"%s\",\n" "SELECT \n"
" t.tmplname AS \"%s\",\n" " n.nspname AS \"%s\",\n"
" t.tmplinit::pg_catalog.regproc AS \"%s\",\n" " t.tmplname AS \"%s\",\n"
" t.tmpllexize::pg_catalog.regproc AS \"%s\",\n" " t.tmplinit::pg_catalog.regproc AS \"%s\",\n"
" pg_catalog.obj_description(t.oid, 'pg_ts_template') AS \"%s\"\n", " t.tmpllexize::pg_catalog.regproc AS \"%s\",\n"
_("Schema"), " pg_catalog.obj_description(t.oid, 'pg_ts_template') AS \"%s\"\n",
_("Name"), _("Schema"),
_("Init"), _("Name"),
_("Lexize"), _("Init"),
_("Description")); _("Lexize"),
_("Description"));
else
printfPQExpBuffer(&buf,
"SELECT \n"
" n.nspname AS \"%s\",\n"
" t.tmplname AS \"%s\",\n"
" pg_catalog.obj_description(t.oid, 'pg_ts_template') AS \"%s\"\n",
_("Schema"),
_("Name"),
_("Description"));
appendPQExpBuffer(&buf, "FROM pg_catalog.pg_ts_template t\n" appendPQExpBuffer(&buf, "FROM pg_catalog.pg_ts_template t\n"
"LEFT JOIN pg_catalog.pg_namespace n ON n.oid = t.tmplnamespace\n"); "LEFT JOIN pg_catalog.pg_namespace n ON n.oid = t.tmplnamespace\n");