pgsql: Add test for CREATE INDEX CONCURRENTLY with not-so-immutable pre - Mailing list pgsql-committers

From Michael Paquier
Subject pgsql: Add test for CREATE INDEX CONCURRENTLY with not-so-immutable pre
Date
Msg-id [email protected]
Whole thread Raw
List pgsql-committers
Add test for CREATE INDEX CONCURRENTLY with not-so-immutable predicate

83158f7 has improved index_set_state_flags() so as it is possible to use
transactional updates when updating pg_index state flags, but there was
not really a test case which stressed directly the possibility it fixed.
This commit adds such a test, using a predicate that looks valid in
appearance but calls a stable function.

Author: Andrey Lepikhov
Discussion: https://postgr.es/m/[email protected]
Backpatch-through: 9.6

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/38ca11adeb5a9a2812510048dd0d43dfbd05caf8

Modified Files
--------------
src/test/regress/expected/create_index.out | 12 ++++++++++++
src/test/regress/sql/create_index.sql      | 13 ++++++++++++-
2 files changed, 24 insertions(+), 1 deletion(-)


pgsql-committers by date:

Previous
From: Michael Paquier
Date:
Subject: pgsql: Make index_set_state_flags() transactional
Next
From: Michael Paquier
Date:
Subject: pgsql: Fix variable initialization with ALTER SUBSCRIPTION DROP PUBLICA