]> granicus.if.org Git - postgresql/commit
Reject ANALYZE commands during VACUUM FULL or another ANALYZE.
authorNoah Misch <noah@leadboat.com>
Thu, 8 Jan 2015 03:33:58 +0000 (22:33 -0500)
committerNoah Misch <noah@leadboat.com>
Thu, 8 Jan 2015 03:33:58 +0000 (22:33 -0500)
commite415b469b33ba328765e39fd62edcd28f30d9c3c
tree836c785c7790fd0716092a2844b821f34071b938
parent39f2594ba54657f3fa8d0fe230447e673bcba2a4
Reject ANALYZE commands during VACUUM FULL or another ANALYZE.

vacuum()'s static variable handling makes it non-reentrant; an ensuing
null pointer deference crashed the backend.  Back-patch to 9.0 (all
supported versions).
src/backend/commands/vacuum.c
src/test/regress/expected/vacuum.out
src/test/regress/sql/vacuum.sql