Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
7c07b136
Commit
7c07b136
authored
Jun 28, 2007
by
Neil Conway
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add the function's volatility to the output of psql's \df+ command.
Update the psql reference page accordingly.
parent
867e2c91
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
doc/src/sgml/ref/psql-ref.sgml
doc/src/sgml/ref/psql-ref.sgml
+2
-2
src/bin/psql/describe.c
src/bin/psql/describe.c
+7
-2
No files found.
doc/src/sgml/ref/psql-ref.sgml
View file @
7c07b136
<!--
<!--
$PostgreSQL: pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.19
1 2007/05/03 15:47:48 alvherre
Exp $
$PostgreSQL: pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.19
2 2007/06/28 06:40:16 neilc
Exp $
PostgreSQL documentation
PostgreSQL documentation
-->
-->
...
@@ -976,7 +976,7 @@ testdb=>
...
@@ -976,7 +976,7 @@ testdb=>
class="parameter">pattern</replaceable>
class="parameter">pattern</replaceable>
is specified, only functions whose names match the pattern are shown.
is specified, only functions whose names match the pattern are shown.
If the form <literal>\df+</literal> is used, additional information about
If the form <literal>\df+</literal> is used, additional information about
each function, including
languag
e and description, is shown.
each function, including
volatility, language, source cod
e and description, is shown.
</para>
</para>
<note>
<note>
...
...
src/bin/psql/describe.c
View file @
7c07b136
...
@@ -3,7 +3,7 @@
...
@@ -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.15
5 2007/03/19 23:38:31 wieck
Exp $
* $PostgreSQL: pgsql/src/bin/psql/describe.c,v 1.15
6 2007/06/28 06:40:16 neilc
Exp $
*/
*/
#include "postgres_fe.h"
#include "postgres_fe.h"
#include "describe.h"
#include "describe.h"
...
@@ -205,11 +205,16 @@ describeFunctions(const char *pattern, bool verbose)
...
@@ -205,11 +205,16 @@ describeFunctions(const char *pattern, bool verbose)
if
(
verbose
)
if
(
verbose
)
appendPQExpBuffer
(
&
buf
,
appendPQExpBuffer
(
&
buf
,
",
\n
CASE
\n
"
" WHEN p.provolatile = 'i' THEN 'immutable'
\n
"
" WHEN p.provolatile = 's' THEN 'stable'
\n
"
" WHEN p.provolatile = 'v' THEN 'volatile'
\n
"
"END as
\"
%s
\"
"
",
\n
r.rolname as
\"
%s
\"
,
\n
"
",
\n
r.rolname as
\"
%s
\"
,
\n
"
" l.lanname as
\"
%s
\"
,
\n
"
" l.lanname as
\"
%s
\"
,
\n
"
" p.prosrc as
\"
%s
\"
,
\n
"
" p.prosrc as
\"
%s
\"
,
\n
"
" pg_catalog.obj_description(p.oid, 'pg_proc') as
\"
%s
\"
"
,
" pg_catalog.obj_description(p.oid, 'pg_proc') as
\"
%s
\"
"
,
_
(
"Owner"
),
_
(
"Language"
),
_
(
"
Volatility"
),
_
(
"
Owner"
),
_
(
"Language"
),
_
(
"Source code"
),
_
(
"Description"
));
_
(
"Source code"
),
_
(
"Description"
));
if
(
!
verbose
)
if
(
!
verbose
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment