]> 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:34:21 +0000 (22:34 -0500)
commit4dd51b366eb4f66ea2f1f30b5fda5960c633893d
treea0f1301a80402466087553cf8c74bbe43899e754
parent6fdcf886d5270dd22f7c89523cf8df491291c77c
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