Modify readfuncs so that recursive use of stringToNode will not crash

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

Commit: 4057b64f32dca9e79602ade1813e8d1ffbfa91d0
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2001-01-07T01:08:48Z
Releases: 7.1.1
Modify readfuncs so that recursive use of stringToNode will not crash
and burn.  Just for added luck, change reading of CONST nodes so that
we do not need to consult pg_type rows while reading them; this means
that no database access occurs during stringToNode.  This requires
changing the order in which const-node fields are written, which means
an initdb is forced.

Files

PathChange+/−
src/backend/nodes/outfuncs.c modified +17 −40
src/backend/nodes/read.c modified +33 −25
src/backend/nodes/readfuncs.c modified +384 −390
src/include/catalog/catversion.h modified +2 −2
src/include/nodes/readfuncs.h modified +2 −2