pgsql: Reject ANALYZE commands during VACUUM FULL or another ANALYZE. - Mailing list pgsql-committers

From Noah Misch
Subject pgsql: Reject ANALYZE commands during VACUUM FULL or another ANALYZE.
Date
Msg-id E1Y94MI-00057p-6c@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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(-)


pgsql-committers by date:

Previous
From: Noah Misch
Date:
Subject: pgsql: On Darwin, refuse postmaster startup when multithreaded.
Next
From: Noah Misch
Date:
Subject: pgsql: Always set the six locale category environment variables in main