-
- Downloads
Modify sequence state storage to eliminate dangling-pointer problem
exemplified by bug #671. Moving the storage to relcache turned out to be a bad idea because relcache might decide to discard the info. Instead, open and close the relcache entry on each sequence operation, and use a record of the current XID to discover whether we already hold AccessShareLock on the sequence.
Showing
- src/backend/access/transam/xact.c 1 addition, 4 deletionssrc/backend/access/transam/xact.c
- src/backend/commands/define.c 30 additions, 1 deletionsrc/backend/commands/define.c
- src/backend/commands/sequence.c 118 additions, 130 deletionssrc/backend/commands/sequence.c
- src/include/commands/defrem.h 3 additions, 2 deletionssrc/include/commands/defrem.h
- src/include/commands/sequence.h 1 addition, 2 deletionssrc/include/commands/sequence.h
Loading
Please register or sign in to comment