Thread: pgsql: Reject ANALYZE commands during VACUUM FULL or another ANALYZE.

pgsql: Reject ANALYZE commands during VACUUM FULL or another ANALYZE.

From
Noah Misch
Date:
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).

Branch
------
REL9_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/e045052863a4517b11ffab0ae9a92160280d49ea

Modified Files
--------------
src/backend/commands/vacuum.c        |   14 ++++++++++++--
src/test/regress/expected/vacuum.out |   14 +++++++++++++-
src/test/regress/sql/vacuum.sql      |    9 ++++++++-
3 files changed, 33 insertions(+), 4 deletions(-)