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

Commit1a4d714

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 parentb2b1f12 commit1a4d714

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
@@ -4845,9 +4845,11 @@ ORDER BY c.ordinal_position;
48454845
<title><literal>routine_column_usage</literal></title>
48464846

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

48534855
<table>
@@ -5084,12 +5086,12 @@ ORDER BY c.ordinal_position;
50845086
<title><literal>routine_routine_usage</literal></title>
50855087

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

@@ -5183,11 +5185,11 @@ ORDER BY c.ordinal_position;
51835185
<title><literal>routine_sequence_usage</literal></title>
51845186

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

51935195
<table>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp