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.
Showing
- src/backend/nodes/outfuncs.c 17 additions, 40 deletionssrc/backend/nodes/outfuncs.c
- src/backend/nodes/read.c 33 additions, 25 deletionssrc/backend/nodes/read.c
- src/backend/nodes/readfuncs.c 384 additions, 390 deletionssrc/backend/nodes/readfuncs.c
- src/include/catalog/catversion.h 2 additions, 2 deletionssrc/include/catalog/catversion.h
- src/include/nodes/readfuncs.h 2 additions, 2 deletionssrc/include/nodes/readfuncs.h
Loading
Please register or sign in to comment