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

Commit8936867

Browse files
committed
Add prosecdef to \df+ output.
Jon Erdman, reviewed by Phil Sorber and Stephen Frost.
1 parent7441b49 commit8936867

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

‎doc/src/sgml/ref/psql-ref.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1188,7 +1188,7 @@ testdb=>
11881188
class="parameter">pattern</replaceable> is specified, only
11891189
functions whose names match the pattern are shown. If the
11901190
form <literal>\df+</literal> is used, additional information
1191-
about each function, including volatility, language, source
1191+
about each function, includingsecurity,volatility, language, source
11921192
code and description, is shown. By default, only user-created
11931193
objects are shown; supply a pattern or the <literal>S</literal>
11941194
modifier to include system objects.

‎src/bin/psql/describe.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ describeFunctions(const char *functypes, const char *pattern, bool verbose, bool
256256
" WHEN p.proiswindow THEN '%s'\n"
257257
" WHEN p.prorettype = 'pg_catalog.trigger'::pg_catalog.regtype THEN '%s'\n"
258258
" ELSE '%s'\n"
259-
"END as \"%s\"",
259+
"END as \"%s\"",
260260
gettext_noop("Result data type"),
261261
gettext_noop("Argument data types"),
262262
/* translator: "agg" is short for "aggregate" */
@@ -330,15 +330,19 @@ describeFunctions(const char *functypes, const char *pattern, bool verbose, bool
330330

331331
if (verbose)
332332
appendPQExpBuffer(&buf,
333+
",\n CASE WHEN prosecdef THEN '%s' ELSE '%s' END AS \"%s\""
333334
",\n CASE\n"
334335
" WHEN p.provolatile = 'i' THEN '%s'\n"
335336
" WHEN p.provolatile = 's' THEN '%s'\n"
336337
" WHEN p.provolatile = 'v' THEN '%s'\n"
337-
"END as \"%s\""
338+
"END as \"%s\""
338339
",\n pg_catalog.pg_get_userbyid(p.proowner) as \"%s\",\n"
339340
" l.lanname as \"%s\",\n"
340341
" p.prosrc as \"%s\",\n"
341342
" pg_catalog.obj_description(p.oid, 'pg_proc') as \"%s\"",
343+
gettext_noop("definer"),
344+
gettext_noop("invoker"),
345+
gettext_noop("Security"),
342346
gettext_noop("immutable"),
343347
gettext_noop("stable"),
344348
gettext_noop("volatile"),

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp