Reject REPACK (ANALYZE) in a transaction block

The current implementation doesn't support it correctly, leading to
mysterious warnings and some worse problems.  Have the combination throw
an error.

This is intended as a temporary stopgap until we can implement it in a
future release, as it's a useful feature.

Author: Fujii Masao <[email protected]>
Author: Antonin Houska <[email protected]>
Author: Osama Abdul Qader <[email protected]>
Reported-by: Nathan Bossart <[email protected]>
Backpatch-through: 19
Discussion: https://postgr.es/m/apBCEl4hBHlq0axm@nathan

Branch
------
REL_19_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/24dd8c369e5656a9c38f5494c9c57c38705ce62f

Modified Files
--------------
doc/src/sgml/ref/repack.sgml          |  2 ++
src/backend/commands/repack.c         | 13 ++++++++++++-
src/test/regress/expected/cluster.out | 17 ++++++++++++++++-
src/test/regress/sql/cluster.sql      | 17 ++++++++++++++++-
4 files changed, 46 insertions(+), 3 deletions(-)

Reply via email to