Skip to content

Commit 5b2dcea

Browse files
committed
doc: Update info on information schema usage tables
Commit f40c696 added the information schema usage tables but added documentation that they did not fully work yet. Commit e717a9a then added SQL-standard function bodies, which made the information schema views fully functional, but it neglected to update the documentation. 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 parent f66fcc5 commit 5b2dcea

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 identify all
5089-
functions or 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> identifies all functions
5091+
or procedures that are used by another (or the same) function or procedure,
5092+
either in the SQL body 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 a currently 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 identify all
5188-
sequences that are used by a function or procedure, either in the body or
5189-
in parameter default expressions. Currently, only sequences 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> identifies all sequences
5190+
that are used by a function or procedure, either in the SQL body or in
5191+
parameter default expressions. (This only works for unquoted SQL bodies,
5192+
not quoted bodies or functions in other languages.) A sequence is only
5193+
included if that sequence is owned by a currently enabled role.
51925194
</para>
51935195

51945196
<table>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy