pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Add test for CREATE INDEX CONCURRENTLY with not-so-immutable pre
6+ messages / 1 participants
[nested] [flat]

* pgsql: Add test for CREATE INDEX CONCURRENTLY with not-so-immutable pre
@ 2021-06-28 02:19 Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 6+ messages in thread

From: Michael Paquier @ 2021-06-28 02:19 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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/9b905019-5297-7372-0ad2-e1a4bb66a719@postgrespro.ru
Backpatch-through: 9.6

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/09a69f6e23369847cf11cd03c999a0342d47bbcc

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(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Add test for CREATE INDEX CONCURRENTLY with not-so-immutable pre
@ 2021-06-28 02:19 Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 6+ messages in thread

From: Michael Paquier @ 2021-06-28 02:19 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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/9b905019-5297-7372-0ad2-e1a4bb66a719@postgrespro.ru
Backpatch-through: 9.6

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/fd7bc10ab4c6a88846d1b8a35d16cfe0b8f5a487

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(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Add test for CREATE INDEX CONCURRENTLY with not-so-immutable pre
@ 2021-06-28 02:19 Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 6+ messages in thread

From: Michael Paquier @ 2021-06-28 02:19 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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/9b905019-5297-7372-0ad2-e1a4bb66a719@postgrespro.ru
Backpatch-through: 9.6

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/ce8949c4b6e225a3ae31e4b7ccdef0f7ab70ada6

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(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Add test for CREATE INDEX CONCURRENTLY with not-so-immutable pre
@ 2021-06-28 02:19 Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 6+ messages in thread

From: Michael Paquier @ 2021-06-28 02:19 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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/9b905019-5297-7372-0ad2-e1a4bb66a719@postgrespro.ru
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(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Add test for CREATE INDEX CONCURRENTLY with not-so-immutable pre
@ 2021-06-28 02:19 Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 6+ messages in thread

From: Michael Paquier @ 2021-06-28 02:19 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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/9b905019-5297-7372-0ad2-e1a4bb66a719@postgrespro.ru
Backpatch-through: 9.6

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/5160d5bb16625e154857ad7f717ddaee118b3fd3

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(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Add test for CREATE INDEX CONCURRENTLY with not-so-immutable pre
@ 2021-06-28 02:19 Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 6+ messages in thread

From: Michael Paquier @ 2021-06-28 02:19 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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/9b905019-5297-7372-0ad2-e1a4bb66a719@postgrespro.ru
Backpatch-through: 9.6

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/21257a8f6dcb1466ce78421286a075b75bf82f4f

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(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2021-06-28 02:19 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-06-28 02:19 pgsql: Add test for CREATE INDEX CONCURRENTLY with not-so-immutable pre Michael Paquier <michael@paquier.xyz>
2021-06-28 02:19 pgsql: Add test for CREATE INDEX CONCURRENTLY with not-so-immutable pre Michael Paquier <michael@paquier.xyz>
2021-06-28 02:19 pgsql: Add test for CREATE INDEX CONCURRENTLY with not-so-immutable pre Michael Paquier <michael@paquier.xyz>
2021-06-28 02:19 pgsql: Add test for CREATE INDEX CONCURRENTLY with not-so-immutable pre Michael Paquier <michael@paquier.xyz>
2021-06-28 02:19 pgsql: Add test for CREATE INDEX CONCURRENTLY with not-so-immutable pre Michael Paquier <michael@paquier.xyz>
2021-06-28 02:19 pgsql: Add test for CREATE INDEX CONCURRENTLY with not-so-immutable pre Michael Paquier <michael@paquier.xyz>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox