aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2025-04-22 10:01:38 +0900
committerMichael Paquier <michael@paquier.xyz>2025-04-22 10:01:38 +0900
commit02c63f9438e082ac58284eed52a9a46015a83432 (patch)
tree215767220b29df63b9c4a50a7766c24a2f539deb /src
parent5e6f9a9c4e7edbe110eab25f9fc05a6d136b950a (diff)
downloadpostgresql-02c63f9438e082ac58284eed52a9a46015a83432.tar.gz
postgresql-02c63f9438e082ac58284eed52a9a46015a83432.zip
Rename injection point for invalidation messages at end of transaction
This injection point was named "AtEOXact_Inval-with-transInvalInfo", not respecting the implied naming convention that injection points should use lower-case characters, with terms separated by dashes. All the other points defined in the tree follow this style, so let's be more consistent. Author: Hayato Kuroda <kuroda.hayato@fujitsu.com> Reviewed-by: Aleksander Alekseev <aleksander@timescale.com> Discussion: https://postgr.es/m/OSCPR01MB14966E14C1378DEE51FB7B7C5F5B32@OSCPR01MB14966.jpnprd01.prod.outlook.com Backpatch-through: 17
Diffstat (limited to 'src')
-rw-r--r--src/backend/utils/cache/inval.c2
-rw-r--r--src/test/modules/injection_points/expected/syscache-update-pruned.out12
-rw-r--r--src/test/modules/injection_points/expected/syscache-update-pruned_1.out12
-rw-r--r--src/test/modules/injection_points/specs/syscache-update-pruned.spec6
4 files changed, 16 insertions, 16 deletions
diff --git a/src/backend/utils/cache/inval.c b/src/backend/utils/cache/inval.c
index c93679dfdcc..fa7b4d7e303 100644
--- a/src/backend/utils/cache/inval.c
+++ b/src/backend/utils/cache/inval.c
@@ -1207,7 +1207,7 @@ AtEOXact_Inval(bool isCommit)
/* Must be at top of stack */
Assert(transInvalInfo->my_level == 1 && transInvalInfo->parent == NULL);
- INJECTION_POINT("AtEOXact_Inval-with-transInvalInfo");
+ INJECTION_POINT("transaction-end-process-inval");
if (isCommit)
{
diff --git a/src/test/modules/injection_points/expected/syscache-update-pruned.out b/src/test/modules/injection_points/expected/syscache-update-pruned.out
index 9a9683bb496..a6a4e8db996 100644
--- a/src/test/modules/injection_points/expected/syscache-update-pruned.out
+++ b/src/test/modules/injection_points/expected/syscache-update-pruned.out
@@ -10,8 +10,8 @@ step waitprunable4: CALL vactest.wait_prunable();
step vac4: VACUUM (FREEZE, DISABLE_PAGE_SKIPPING) pg_class;
step grant1: GRANT SELECT ON vactest.orig50 TO PUBLIC; <waiting ...>
step wakeinval4:
- SELECT FROM injection_points_detach('AtEOXact_Inval-with-transInvalInfo');
- SELECT FROM injection_points_wakeup('AtEOXact_Inval-with-transInvalInfo');
+ SELECT FROM injection_points_detach('transaction-end-process-inval');
+ SELECT FROM injection_points_wakeup('transaction-end-process-inval');
<waiting ...>
step at2: <... completed>
step wakeinval4: <... completed>
@@ -33,8 +33,8 @@ step waitprunable4: CALL vactest.wait_prunable();
step vac4: VACUUM (FREEZE, DISABLE_PAGE_SKIPPING) pg_class;
step grant1: GRANT SELECT ON vactest.orig50 TO PUBLIC; <waiting ...>
step wakeinval4:
- SELECT FROM injection_points_detach('AtEOXact_Inval-with-transInvalInfo');
- SELECT FROM injection_points_wakeup('AtEOXact_Inval-with-transInvalInfo');
+ SELECT FROM injection_points_detach('transaction-end-process-inval');
+ SELECT FROM injection_points_wakeup('transaction-end-process-inval');
<waiting ...>
step at2: <... completed>
step wakeinval4: <... completed>
@@ -64,8 +64,8 @@ step waitprunable4: CALL vactest.wait_prunable();
step vac4: VACUUM (FREEZE, DISABLE_PAGE_SKIPPING) pg_class;
step grant1: GRANT SELECT ON vactest.orig50 TO PUBLIC; <waiting ...>
step wakeinval4:
- SELECT FROM injection_points_detach('AtEOXact_Inval-with-transInvalInfo');
- SELECT FROM injection_points_wakeup('AtEOXact_Inval-with-transInvalInfo');
+ SELECT FROM injection_points_detach('transaction-end-process-inval');
+ SELECT FROM injection_points_wakeup('transaction-end-process-inval');
<waiting ...>
step at2: <... completed>
step wakeinval4: <... completed>
diff --git a/src/test/modules/injection_points/expected/syscache-update-pruned_1.out b/src/test/modules/injection_points/expected/syscache-update-pruned_1.out
index 64c39d708bd..4dca2b86bc8 100644
--- a/src/test/modules/injection_points/expected/syscache-update-pruned_1.out
+++ b/src/test/modules/injection_points/expected/syscache-update-pruned_1.out
@@ -10,8 +10,8 @@ step waitprunable4: CALL vactest.wait_prunable();
step vac4: VACUUM (FREEZE, DISABLE_PAGE_SKIPPING) pg_class;
step grant1: GRANT SELECT ON vactest.orig50 TO PUBLIC; <waiting ...>
step wakeinval4:
- SELECT FROM injection_points_detach('AtEOXact_Inval-with-transInvalInfo');
- SELECT FROM injection_points_wakeup('AtEOXact_Inval-with-transInvalInfo');
+ SELECT FROM injection_points_detach('transaction-end-process-inval');
+ SELECT FROM injection_points_wakeup('transaction-end-process-inval');
<waiting ...>
step at2: <... completed>
step wakeinval4: <... completed>
@@ -32,8 +32,8 @@ step waitprunable4: CALL vactest.wait_prunable();
step vac4: VACUUM (FREEZE, DISABLE_PAGE_SKIPPING) pg_class;
step grant1: GRANT SELECT ON vactest.orig50 TO PUBLIC; <waiting ...>
step wakeinval4:
- SELECT FROM injection_points_detach('AtEOXact_Inval-with-transInvalInfo');
- SELECT FROM injection_points_wakeup('AtEOXact_Inval-with-transInvalInfo');
+ SELECT FROM injection_points_detach('transaction-end-process-inval');
+ SELECT FROM injection_points_wakeup('transaction-end-process-inval');
<waiting ...>
step at2: <... completed>
step wakeinval4: <... completed>
@@ -62,8 +62,8 @@ step waitprunable4: CALL vactest.wait_prunable();
step vac4: VACUUM (FREEZE, DISABLE_PAGE_SKIPPING) pg_class;
step grant1: GRANT SELECT ON vactest.orig50 TO PUBLIC; <waiting ...>
step wakeinval4:
- SELECT FROM injection_points_detach('AtEOXact_Inval-with-transInvalInfo');
- SELECT FROM injection_points_wakeup('AtEOXact_Inval-with-transInvalInfo');
+ SELECT FROM injection_points_detach('transaction-end-process-inval');
+ SELECT FROM injection_points_wakeup('transaction-end-process-inval');
<waiting ...>
step at2: <... completed>
step wakeinval4: <... completed>
diff --git a/src/test/modules/injection_points/specs/syscache-update-pruned.spec b/src/test/modules/injection_points/specs/syscache-update-pruned.spec
index 086d084de25..e3a4295bd12 100644
--- a/src/test/modules/injection_points/specs/syscache-update-pruned.spec
+++ b/src/test/modules/injection_points/specs/syscache-update-pruned.spec
@@ -117,7 +117,7 @@ session s2
setup {
SELECT FROM injection_points_set_local();
SELECT FROM
- injection_points_attach('AtEOXact_Inval-with-transInvalInfo', 'wait');
+ injection_points_attach('transaction-end-process-inval', 'wait');
}
step at2 {
CREATE TRIGGER to_set_relhastriggers BEFORE UPDATE ON vactest.orig50
@@ -145,8 +145,8 @@ step wakegrant4 {
}
step at4 { ALTER TABLE vactest.child50 INHERIT vactest.orig50; }
step wakeinval4 {
- SELECT FROM injection_points_detach('AtEOXact_Inval-with-transInvalInfo');
- SELECT FROM injection_points_wakeup('AtEOXact_Inval-with-transInvalInfo');
+ SELECT FROM injection_points_detach('transaction-end-process-inval');
+ SELECT FROM injection_points_wakeup('transaction-end-process-inval');
}
# Witness effects of steps at2 and/or at4.
step inspect4 {