1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-03 20:02:46 +03:00

Fix failure to follow the directions when "init" fork was added.

Specifically this commit updates forkname_to_number() so that the HINT
message includes "init" fork, and also adds the description of "init" fork
into pg_relation_size() document.

This is a part of the commit 2d00190495
which has fixed the same oversight in master and 9.4. Back-patch to
9.1 where "init" fork was added.
This commit is contained in:
Fujii Masao
2014-08-11 23:19:23 +09:00
parent 79b0bc1e95
commit a91fcd93ca
2 changed files with 9 additions and 2 deletions

View File

@ -61,7 +61,8 @@ forkname_to_number(char *forkName)
ereport(ERROR,
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
errmsg("invalid fork name"),
errhint("Valid fork names are \"main\", \"fsm\", and \"vm\".")));
errhint("Valid fork names are \"main\", \"fsm\", "
"\"vm\", and \"init\".")));
return InvalidForkNumber; /* keep compiler quiet */
}