]> 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:17 +0000 (22:34 -0500)
commitfa042abddfad054b6872a2e2451868b08a230a2a
tree8150c0f578d5c1dcc46e2712bbf17db64462b6d3
parent7da1021542411130b66812e875c944c5aebf91d0
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