]> granicus.if.org Git - postgresql/commit
Invert logic in pg_exec_query_string() so that we set a snapshot for
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 19 Oct 2002 20:15:09 +0000 (20:15 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 19 Oct 2002 20:15:09 +0000 (20:15 +0000)
commit60992456ed00b52f90e47a736ace12668b881225
tree9b8b7f69c41d5f96dbfd2fd0d4ddeb81ef52c2c7
parentc1f91a38e20864c14650794a64d52f2d6c900e0f
Invert logic in pg_exec_query_string() so that we set a snapshot for
all utility statement types *except* a short list, per discussion a few
days ago.  Add missing SetQuerySnapshot calls in VACUUM and REINDEX,
and guard against calling REINDEX DATABASE from a function (has same
problem as VACUUM).
src/backend/commands/indexcmds.c
src/backend/commands/vacuum.c
src/backend/tcop/postgres.c