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

Commita91fcd9

Browse files
committed
Fix failure to follow the directions when "init" fork was added.
Specifically this commit updates forkname_to_number() so that the HINTmessage includes "init" fork, and also adds the description of "init" forkinto pg_relation_size() document.This is a part of the commit2d00190which has fixed the same oversight in master and 9.4. Back-patch to9.1 where "init" fork was added.
1 parent79b0bc1 commita91fcd9

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

‎doc/src/sgml/func.sgml‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15596,7 +15596,7 @@ postgres=# SELECT * FROM pg_xlogfile_name_offset(pg_stop_backup());
1559615596
<entry><type>bigint</type></entry>
1559715597
<entry>
1559815598
Disk space used by the specified fork (<literal>'main'</literal>,
15599-
<literal>'fsm'</literal>or <literal>'vm'</>)
15599+
<literal>'fsm'</literal>, <literal>'vm'</>,or <literal>'init'</>)
1560015600
of the specified table or index
1560115601
</entry>
1560215602
</row>
@@ -15730,6 +15730,12 @@ postgres=# SELECT * FROM pg_xlogfile_name_offset(pg_stop_backup());
1573015730
(see <xref linkend="storage-vm">) associated with the relation.
1573115731
</para>
1573215732
</listitem>
15733+
<listitem>
15734+
<para>
15735+
<literal>'init'</literal> returns the size of the initialization fork,
15736+
if any, (see <xref linkend="storage-init">) associated with the relation.
15737+
</para>
15738+
</listitem>
1573315739
</itemizedlist>
1573415740
</para>
1573515741

‎src/backend/catalog/catalog.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ forkname_to_number(char *forkName)
6161
ereport(ERROR,
6262
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
6363
errmsg("invalid fork name"),
64-
errhint("Valid fork names are \"main\", \"fsm\", and \"vm\".")));
64+
errhint("Valid fork names are \"main\", \"fsm\", "
65+
"\"vm\", and \"init\".")));
6566
returnInvalidForkNumber;/* keep compiler quiet */
6667
}
6768

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp