Fix omission of locations in outfuncs/readfuncs partitioning node support.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 80f583ffe930b21d6e5c47be4342356e57851a9a
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2017-05-30T15:32:41Z
Releases: 10.0
Fix omission of locations in outfuncs/readfuncs partitioning node support.

We could have limped along without this for v10, which was my intention
when I annotated the bug in commit 76a3df6e5.  But consensus is that it's
better to fix it now and take the cost of a post-beta1 initdb (which is
needed because these node types are stored in pg_class.relpartbound).

Since we're forcing initdb anyway, take the opportunity to make the node
type identification strings match the node struct names, instead of being
randomly different from them.

Discussion: https://postgr.es/m/E1dFBEX-0004wt-8t@gemulon.postgresql.org

Files

PathChange+/−
src/backend/nodes/outfuncs.c modified +5 −5
src/backend/nodes/readfuncs.c modified +4 −6
src/include/catalog/catversion.h modified +1 −1

Discussion