Modify readfuncs so that recursive use of stringToNode will not crash
Tom Lane <tgl@sss.pgh.pa.us>
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
| Path | Change | +/− |
|---|---|---|
| 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 |