Commit 9356e435 authored by Tom Lane's avatar Tom Lane

Doc: fix assorted misstatements of fact in catalog & system view docs.

I made up a very crude hack to compare the docs with reality (as
embodied in the system catalogs) ... and indeed they don't match
everywhere.  Missing oid columns, wrong data types, wrong "references"
links, columns listed in the wrong order.  None of this seems quite
important enough to back-patch.
parent 96d175e3
...@@ -3312,6 +3312,13 @@ SCRAM-SHA-256$<replaceable>&lt;iteration count&gt;</replaceable>:<replaceable>&l ...@@ -3312,6 +3312,13 @@ SCRAM-SHA-256$<replaceable>&lt;iteration count&gt;</replaceable>:<replaceable>&l
</thead> </thead>
<tbody> <tbody>
<row>
<entry><structfield>oid</structfield></entry>
<entry><type>oid</type></entry>
<entry></entry>
<entry>Row identifier</entry>
</row>
<row> <row>
<entry><structfield>evtname</structfield></entry> <entry><structfield>evtname</structfield></entry>
<entry><type>name</type></entry> <entry><type>name</type></entry>
...@@ -4879,7 +4886,7 @@ SCRAM-SHA-256$<replaceable>&lt;iteration count&gt;</replaceable>:<replaceable>&l ...@@ -4879,7 +4886,7 @@ SCRAM-SHA-256$<replaceable>&lt;iteration count&gt;</replaceable>:<replaceable>&l
<row> <row>
<entry><structfield>partcollation</structfield></entry> <entry><structfield>partcollation</structfield></entry>
<entry><type>oidvector</type></entry> <entry><type>oidvector</type></entry>
<entry><literal><link linkend="catalog-pg-opclass"><structname>pg_opclass</structname></link>.oid</literal></entry> <entry><literal><link linkend="catalog-pg-collation"><structname>pg_collation</structname></link>.oid</literal></entry>
<entry> <entry>
For each column in the partition key, this contains the OID of the For each column in the partition key, this contains the OID of the
collation to use for partitioning, or zero if the column is not collation to use for partitioning, or zero if the column is not
...@@ -4938,6 +4945,13 @@ SCRAM-SHA-256$<replaceable>&lt;iteration count&gt;</replaceable>:<replaceable>&l ...@@ -4938,6 +4945,13 @@ SCRAM-SHA-256$<replaceable>&lt;iteration count&gt;</replaceable>:<replaceable>&l
</thead> </thead>
<tbody> <tbody>
<row>
<entry><structfield>oid</structfield></entry>
<entry><type>oid</type></entry>
<entry></entry>
<entry>Row identifier</entry>
</row>
<row> <row>
<entry><structfield>polname</structfield></entry> <entry><structfield>polname</structfield></entry>
<entry><type>name</type></entry> <entry><type>name</type></entry>
...@@ -5480,6 +5494,13 @@ SCRAM-SHA-256$<replaceable>&lt;iteration count&gt;</replaceable>:<replaceable>&l ...@@ -5480,6 +5494,13 @@ SCRAM-SHA-256$<replaceable>&lt;iteration count&gt;</replaceable>:<replaceable>&l
</thead> </thead>
<tbody> <tbody>
<row>
<entry><structfield>oid</structfield></entry>
<entry><type>oid</type></entry>
<entry></entry>
<entry>Row identifier</entry>
</row>
<row> <row>
<entry><structfield>prpubid</structfield></entry> <entry><structfield>prpubid</structfield></entry>
<entry><type>oid</type></entry> <entry><type>oid</type></entry>
...@@ -6432,6 +6453,13 @@ SCRAM-SHA-256$<replaceable>&lt;iteration count&gt;</replaceable>:<replaceable>&l ...@@ -6432,6 +6453,13 @@ SCRAM-SHA-256$<replaceable>&lt;iteration count&gt;</replaceable>:<replaceable>&l
<tbody> <tbody>
<row>
<entry><structfield>oid</structfield></entry>
<entry><type>oid</type></entry>
<entry></entry>
<entry>Row identifier</entry>
</row>
<row> <row>
<entry><structfield>stxrelid</structfield></entry> <entry><structfield>stxrelid</structfield></entry>
<entry><type>oid</type></entry> <entry><type>oid</type></entry>
...@@ -6677,16 +6705,6 @@ SCRAM-SHA-256$<replaceable>&lt;iteration count&gt;</replaceable>:<replaceable>&l ...@@ -6677,16 +6705,6 @@ SCRAM-SHA-256$<replaceable>&lt;iteration count&gt;</replaceable>:<replaceable>&l
<entry>If true, the subscription is enabled and should be replicating.</entry> <entry>If true, the subscription is enabled and should be replicating.</entry>
</row> </row>
<row>
<entry><structfield>subsynccommit</structfield></entry>
<entry><type>text</type></entry>
<entry></entry>
<entry>
Contains the value of the <varname>synchronous_commit</varname>
setting for the subscription workers.
</entry>
</row>
<row> <row>
<entry><structfield>subconninfo</structfield></entry> <entry><structfield>subconninfo</structfield></entry>
<entry><type>text</type></entry> <entry><type>text</type></entry>
...@@ -6702,6 +6720,16 @@ SCRAM-SHA-256$<replaceable>&lt;iteration count&gt;</replaceable>:<replaceable>&l ...@@ -6702,6 +6720,16 @@ SCRAM-SHA-256$<replaceable>&lt;iteration count&gt;</replaceable>:<replaceable>&l
for local replication origin name.</entry> for local replication origin name.</entry>
</row> </row>
<row>
<entry><structfield>subsynccommit</structfield></entry>
<entry><type>text</type></entry>
<entry></entry>
<entry>
Contains the value of the <varname>synchronous_commit</varname>
setting for the subscription workers.
</entry>
</row>
<row> <row>
<entry><structfield>subpublications</structfield></entry> <entry><structfield>subpublications</structfield></entry>
<entry><type>text[]</type></entry> <entry><type>text[]</type></entry>
...@@ -6894,6 +6922,13 @@ SCRAM-SHA-256$<replaceable>&lt;iteration count&gt;</replaceable>:<replaceable>&l ...@@ -6894,6 +6922,13 @@ SCRAM-SHA-256$<replaceable>&lt;iteration count&gt;</replaceable>:<replaceable>&l
</thead> </thead>
<tbody> <tbody>
<row>
<entry><structfield>oid</structfield></entry>
<entry><type>oid</type></entry>
<entry></entry>
<entry>Row identifier</entry>
</row>
<row> <row>
<entry><structfield>trftype</structfield></entry> <entry><structfield>trftype</structfield></entry>
<entry><type>oid</type></entry> <entry><type>oid</type></entry>
...@@ -9447,7 +9482,7 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx ...@@ -9447,7 +9482,7 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx
<entry>Name of policy</entry> <entry>Name of policy</entry>
</row> </row>
<row> <row>
<entry><structfield>polpermissive</structfield></entry> <entry><structfield>permissive</structfield></entry>
<entry><type>text</type></entry> <entry><type>text</type></entry>
<entry></entry> <entry></entry>
<entry>Is the policy permissive or restrictive?</entry> <entry>Is the policy permissive or restrictive?</entry>
...@@ -9844,7 +9879,7 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx ...@@ -9844,7 +9879,7 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx
<row> <row>
<entry><structfield>database</structfield></entry> <entry><structfield>database</structfield></entry>
<entry><type>text</type></entry> <entry><type>name</type></entry>
<entry><literal><link linkend="catalog-pg-database"><structname>pg_database</structname></link>.datname</literal></entry> <entry><literal><link linkend="catalog-pg-database"><structname>pg_database</structname></link>.datname</literal></entry>
<entry>The name of the database this slot is associated with, or <entry>The name of the database this slot is associated with, or
null. Only logical slots have an associated database.</entry> null. Only logical slots have an associated database.</entry>
...@@ -10297,7 +10332,7 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx ...@@ -10297,7 +10332,7 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx
<row> <row>
<entry><structfield>data_type</structfield></entry> <entry><structfield>data_type</structfield></entry>
<entry><type>regtype</type></entry> <entry><type>regtype</type></entry>
<entry><literal><link linkend="catalog-pg-authid"><structname>pg_type</structname></link>.oid</literal></entry> <entry><literal><link linkend="catalog-pg-type"><structname>pg_type</structname></link>.oid</literal></entry>
<entry>Data type of the sequence</entry> <entry>Data type of the sequence</entry>
</row> </row>
<row> <row>
...@@ -11075,8 +11110,8 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx ...@@ -11075,8 +11110,8 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx
<row> <row>
<entry><structfield>statistics_owner</structfield></entry> <entry><structfield>statistics_owner</structfield></entry>
<entry><type>oid</type></entry> <entry><type>name</type></entry>
<entry><literal><link linkend="catalog-pg-authid"><structname>pg_authid</structname></link>.oid</literal></entry> <entry><literal><link linkend="catalog-pg-authid"><structname>pg_authid</structname></link>.rolname</literal></entry>
<entry>Owner of the extended statistics</entry> <entry>Owner of the extended statistics</entry>
</row> </row>
...@@ -11089,7 +11124,7 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx ...@@ -11089,7 +11124,7 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx
<row> <row>
<entry><structfield>kinds</structfield></entry> <entry><structfield>kinds</structfield></entry>
<entry><type>text[]</type></entry> <entry><type>char[]</type></entry>
<entry></entry> <entry></entry>
<entry>Types of extended statistics enabled for this record</entry> <entry>Types of extended statistics enabled for this record</entry>
</row> </row>
...@@ -11120,7 +11155,7 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx ...@@ -11120,7 +11155,7 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx
<row> <row>
<entry><structfield>most_common_vals</structfield></entry> <entry><structfield>most_common_vals</structfield></entry>
<entry><type>anyarray</type></entry> <entry><type>text[]</type></entry>
<entry></entry> <entry></entry>
<entry> <entry>
A list of the most common combinations of values in the columns. A list of the most common combinations of values in the columns.
...@@ -11130,7 +11165,7 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx ...@@ -11130,7 +11165,7 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx
<row> <row>
<entry><structfield>most_common_val_nulls</structfield></entry> <entry><structfield>most_common_val_nulls</structfield></entry>
<entry><type>anyarray</type></entry> <entry><type>bool[]</type></entry>
<entry></entry> <entry></entry>
<entry> <entry>
A list of NULL flags for the most common combinations of values. A list of NULL flags for the most common combinations of values.
...@@ -11140,7 +11175,7 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx ...@@ -11140,7 +11175,7 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx
<row> <row>
<entry><structfield>most_common_freqs</structfield></entry> <entry><structfield>most_common_freqs</structfield></entry>
<entry><type>real[]</type></entry> <entry><type>float8[]</type></entry>
<entry></entry> <entry></entry>
<entry> <entry>
A list of the frequencies of the most common combinations, A list of the frequencies of the most common combinations,
...@@ -11151,7 +11186,7 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx ...@@ -11151,7 +11186,7 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx
<row> <row>
<entry><structfield>most_common_base_freqs</structfield></entry> <entry><structfield>most_common_base_freqs</structfield></entry>
<entry><type>real[]</type></entry> <entry><type>float8[]</type></entry>
<entry></entry> <entry></entry>
<entry> <entry>
A list of the base frequencies of the most common combinations, A list of the base frequencies of the most common combinations,
......
...@@ -4498,7 +4498,7 @@ ORDER BY c.ordinal_position; ...@@ -4498,7 +4498,7 @@ ORDER BY c.ordinal_position;
<row> <row>
<entry><literal>result_cast_char_octet_length</literal></entry> <entry><literal>result_cast_char_octet_length</literal></entry>
<entry><type>character_data</type></entry> <entry><type>cardinal_number</type></entry>
<entry>Applies to a feature not available in <productname>PostgreSQL</productname></entry> <entry>Applies to a feature not available in <productname>PostgreSQL</productname></entry>
</row> </row>
...@@ -4558,7 +4558,7 @@ ORDER BY c.ordinal_position; ...@@ -4558,7 +4558,7 @@ ORDER BY c.ordinal_position;
<row> <row>
<entry><literal>result_cast_datetime_precision</literal></entry> <entry><literal>result_cast_datetime_precision</literal></entry>
<entry><type>character_data</type></entry> <entry><type>cardinal_number</type></entry>
<entry>Applies to a feature not available in <productname>PostgreSQL</productname></entry> <entry>Applies to a feature not available in <productname>PostgreSQL</productname></entry>
</row> </row>
......
...@@ -2043,11 +2043,6 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i ...@@ -2043,11 +2043,6 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i
<entry><type>timestamp with time zone</type></entry> <entry><type>timestamp with time zone</type></entry>
<entry>Send time of last reply message received from standby server</entry> <entry>Send time of last reply message received from standby server</entry>
</row> </row>
<row>
<entry><structfield>spill_bytes</structfield></entry>
<entry><type>bigint</type></entry>
<entry>Amount of decoded transaction data spilled to disk.</entry>
</row>
<row> <row>
<entry><structfield>spill_txns</structfield></entry> <entry><structfield>spill_txns</structfield></entry>
<entry><type>bigint</type></entry> <entry><type>bigint</type></entry>
...@@ -2063,6 +2058,11 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i ...@@ -2063,6 +2058,11 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i
may get spilled repeatedly, and this counter gets incremented on every may get spilled repeatedly, and this counter gets incremented on every
such invocation.</entry> such invocation.</entry>
</row> </row>
<row>
<entry><structfield>spill_bytes</structfield></entry>
<entry><type>bigint</type></entry>
<entry>Amount of decoded transaction data spilled to disk.</entry>
</row>
</tbody> </tbody>
</tgroup> </tgroup>
</table> </table>
...@@ -2242,7 +2242,7 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i ...@@ -2242,7 +2242,7 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i
</row> </row>
<row> <row>
<entry><structfield>subname</structfield></entry> <entry><structfield>subname</structfield></entry>
<entry><type>text</type></entry> <entry><type>name</type></entry>
<entry>Name of the subscription</entry> <entry>Name of the subscription</entry>
</row> </row>
<row> <row>
...@@ -3294,7 +3294,7 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i ...@@ -3294,7 +3294,7 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i
<tbody> <tbody>
<row> <row>
<entry><structfield>name</structfield></entry> <entry><structfield>name</structfield></entry>
<entry><type>name</type></entry> <entry><type>text</type></entry>
<entry>name of the SLRU</entry> <entry>name of the SLRU</entry>
</row> </row>
<row> <row>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment