Fix places that were using IsTransactionBlock() as an (inadequate) check
authorTom Lane
Mon, 21 Oct 2002 22:06:20 +0000 (22:06 +0000)
committerTom Lane
Mon, 21 Oct 2002 22:06:20 +0000 (22:06 +0000)
commit200b15161556a2bc6e6b0cccd08be1ca3a438643
treec520e1a6420f079c6b87594bd9687031f8e8ecc4
parentf724c164d3b9194555a7a7ee10bbb4bfb63caa7a
Fix places that were using IsTransactionBlock() as an (inadequate) check
that they'd get to commit immediately on finishing.  There's now a
centralized routine PreventTransactionChain() that implements the
necessary tests.
src/backend/access/transam/xact.c
src/backend/catalog/heap.c
src/backend/catalog/index.c
src/backend/commands/dbcommands.c
src/backend/commands/indexcmds.c
src/backend/commands/tablecmds.c
src/backend/commands/vacuum.c
src/backend/parser/analyze.c
src/include/access/xact.h