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

Commit4b1812b

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 parentb8eaa7b commit4b1812b

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
@@ -14400,7 +14400,7 @@ postgres=# SELECT * FROM pg_xlogfile_name_offset(pg_stop_backup());
1440014400
<entry><type>bigint</type></entry>
1440114401
<entry>
1440214402
Disk space used by the specified fork (<literal>'main'</literal>,
14403-
<literal>'fsm'</literal>or <literal>'vm'</>)
14403+
<literal>'fsm'</literal>, <literal>'vm'</>,or <literal>'init'</>)
1440414404
of the specified table or index
1440514405
</entry>
1440614406
</row>
@@ -14521,6 +14521,12 @@ postgres=# SELECT * FROM pg_xlogfile_name_offset(pg_stop_backup());
1452114521
(see <xref linkend="storage-vm">) associated with the relation.
1452214522
</para>
1452314523
</listitem>
14524+
<listitem>
14525+
<para>
14526+
<literal>'init'</literal> returns the size of the initialization fork,
14527+
if any, (see <xref linkend="storage-init">) associated with the relation.
14528+
</para>
14529+
</listitem>
1452414530
</itemizedlist>
1452514531
</para>
1452614532

‎src/backend/catalog/catalog.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ forkname_to_number(char *forkName)
7474
ereport(ERROR,
7575
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
7676
errmsg("invalid fork name"),
77-
errhint("Valid fork names are \"main\", \"fsm\", and \"vm\".")));
77+
errhint("Valid fork names are \"main\", \"fsm\", "
78+
"\"vm\", and \"init\".")));
7879
returnInvalidForkNumber;/* keep compiler quiet */
7980
}
8081

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp