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

Commit5b2dcea

Browse files
committed
doc: Update info on information schema usage tables
Commitf40c696 added the information schema usage tables but addeddocumentation that they did not fully work yet. Commite717a9athen added SQL-standard function bodies, which made the informationschema views fully functional, but it neglected to update thedocumentation. This is now done here.Reported-by: Erki Eessaar <erki.eessaar@taltech.ee>Reviewed-by: Erki Eessaar <erki.eessaar@taltech.ee>Discussion:https://www.postgresql.org/message-id/flat/AM9PR01MB8268EC7B696F9FE346CA5B93FEB8A%40AM9PR01MB8268.eurprd01.prod.exchangelabs.com
1 parentf66fcc5 commit5b2dcea

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

‎doc/src/sgml/information_schema.sgml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4846,9 +4846,11 @@ ORDER BY c.ordinal_position;
48464846
<title><literal>routine_column_usage</literal></title>
48474847

48484848
<para>
4849-
The view <literal>routine_column_usage</literal> is meant to identify all
4850-
columns that are used by a function or procedure. This information is
4851-
currently not tracked by <productname>PostgreSQL</productname>.
4849+
The view <literal>routine_column_usage</literal> identifies all columns
4850+
that are used by a function or procedure, either in the SQL body or in
4851+
parameter default expressions. (This only works for unquoted SQL bodies,
4852+
not quoted bodies or functions in other languages.) A column is only
4853+
included if its table is owned by a currently enabled role.
48524854
</para>
48534855

48544856
<table>
@@ -5085,12 +5087,12 @@ ORDER BY c.ordinal_position;
50855087
<title><literal>routine_routine_usage</literal></title>
50865088

50875089
<para>
5088-
The view <literal>routine_routine_usage</literal>is meant to identifyall
5089-
functionsor procedures that are used by another (or the same) function or
5090-
procedure,either in the body or in parameter default expressions.
5091-
Currently, only functions used in parameter default expressions are
5092-
tracked. An entry is included here only if the used function is owned by a
5093-
currently enabled role. (There is no such restriction on the using
5090+
The view <literal>routine_routine_usage</literal>identifiesall functions
5091+
or procedures that are used by another (or the same) function or procedure,
5092+
either in theSQLbody or in parameter default expressions. (This only
5093+
works for unquoted SQL bodies, not quoted bodies or functions in other
5094+
languages.) An entry is included here only if the used function is owned
5095+
by acurrently enabled role. (There is no such restriction on the using
50945096
function.)
50955097
</para>
50965098

@@ -5184,11 +5186,11 @@ ORDER BY c.ordinal_position;
51845186
<title><literal>routine_sequence_usage</literal></title>
51855187

51865188
<para>
5187-
The view <literal>routine_sequence_usage</literal>is meant to identifyall
5188-
sequencesthat are used by a function or procedure, either in the body or
5189-
inparameter default expressions.Currently, onlysequences used in
5190-
parameter default expressions are tracked. A sequence is only included if
5191-
that sequence is owned by a currently enabled role.
5189+
The view <literal>routine_sequence_usage</literal>identifiesall sequences
5190+
that are used by a function or procedure, either in theSQLbody or in
5191+
parameter default expressions.(This onlyworks for unquoted SQL bodies,
5192+
not quoted bodies or functions in other languages.) A sequence is only
5193+
included ifthat sequence is owned by a currently enabled role.
51925194
</para>
51935195

51945196
<table>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp