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
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/25b21c0bb712b615f22cf5fcc176764a416368bd

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