]> 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:26 +0000 (22:34 -0500)
commite045052863a4517b11ffab0ae9a92160280d49ea
tree35674e86c9a63e93bf24541cb53e2c3809b55786
parent6cbadda25a3f52c1fb76ad309f9af9e2aaa8a537
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