aboutsummaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/func.sgml20
1 files changed, 11 insertions, 9 deletions
diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml
index 3a83ab2216c..d04dd747af8 100644
--- a/doc/src/sgml/func.sgml
+++ b/doc/src/sgml/func.sgml
@@ -16847,7 +16847,7 @@ postgres=# SELECT * FROM pg_xlogfile_name_offset(pg_stop_backup());
<entry><type>bigint</type></entry>
<entry>
Disk space used by the specified fork (<literal>'main'</literal>,
- <literal>'fsm'</literal> or <literal>'vm'</>)
+ <literal>'fsm'</literal>, <literal>'vm'</>, or <literal>'init'</>)
of the specified table or index
</entry>
</row>
@@ -16951,14 +16951,16 @@ postgres=# SELECT * FROM pg_xlogfile_name_offset(pg_stop_backup());
<para>
<function>pg_relation_size</> accepts the OID or name of a table, index or
- toast table, and returns the on-disk size in bytes. Specifying
- <literal>'main'</literal> or leaving out the second argument returns the
- size of the main data fork of the relation. Specifying
- <literal>'fsm'</literal> returns the size of the
- Free Space Map (see <xref linkend="storage-fsm">) associated with the
- relation. Specifying <literal>'vm'</literal> returns the size of the
- Visibility Map (see <xref linkend="storage-vm">) associated with the
- relation. Note that this function shows the size of only one fork;
+ toast table, and returns the on-disk size in bytes.
+ Specifying <literal>'main'</literal> or leaving out the second argument
+ returns the size of the main data fork of the relation.
+ Specifying <literal>'fsm'</literal> returns the size of the Free Space
+ Map (see <xref linkend="storage-fsm">) associated with the relation.
+ Specifying <literal>'vm'</literal> returns the size of the Visibility
+ Map (see <xref linkend="storage-vm">) associated with the relation.
+ Specifying <literal>'init'</literal> returns the size of the
+ initialization fork, if any, associated with the relation.
+ Note that this function shows the size of only one fork;
for most purposes it is more convenient to use the higher-level
functions <function>pg_total_relation_size</> or
<function>pg_table_size</>.