diff options
author | Fujii Masao <fujii@postgresql.org> | 2014-08-11 23:19:23 +0900 |
---|---|---|
committer | Fujii Masao <fujii@postgresql.org> | 2014-08-11 23:20:21 +0900 |
commit | 4b1812b8132006576cd303327e6e39d809afb5b6 (patch) | |
tree | ed4c74bada3512bf78f7b654af82f235cb2886ae /src | |
parent | b8eaa7b2a67c9f9f6730376056903feb3da58293 (diff) | |
download | postgresql-4b1812b8132006576cd303327e6e39d809afb5b6.tar.gz postgresql-4b1812b8132006576cd303327e6e39d809afb5b6.zip |
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 2d00190495b22e0d0ba351b2cda9c95fb2e3d083
which has fixed the same oversight in master and 9.4. Back-patch to
9.1 where "init" fork was added.
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/catalog/catalog.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/catalog/catalog.c b/src/backend/catalog/catalog.c index 03799b5ba6a..79c1a1d01d1 100644 --- a/src/backend/catalog/catalog.c +++ b/src/backend/catalog/catalog.c @@ -74,7 +74,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 */ } |