-
- Downloads
Fix a many-legged critter reported by chifungfan@yahoo.com: under the
right circumstances a hash join executed as a DECLARE CURSOR/FETCH query would crash the backend. Problem as seen in current sources was that the hash tables were stored in a context that was a child of TransactionCommandContext, which got zapped at completion of the FETCH command --- but cursor cleanup executed at COMMIT expected the tables to still be valid. I haven't chased down the details as seen in 7.0.* but I'm sure it's the same general problem.
Showing
- src/backend/commands/copy.c 3 additions, 2 deletionssrc/backend/commands/copy.c
- src/backend/executor/execMain.c 25 additions, 17 deletionssrc/backend/executor/execMain.c
- src/backend/executor/execUtils.c 22 additions, 13 deletionssrc/backend/executor/execUtils.c
- src/backend/executor/nodeHash.c 4 additions, 3 deletionssrc/backend/executor/nodeHash.c
- src/backend/tcop/pquery.c 20 additions, 11 deletionssrc/backend/tcop/pquery.c
- src/include/executor/hashjoin.h 2 additions, 2 deletionssrc/include/executor/hashjoin.h
- src/include/nodes/execnodes.h 8 additions, 3 deletionssrc/include/nodes/execnodes.h
Loading
Please register or sign in to comment