Rename injection point for invalidation messages at end of transaction
authorMichael Paquier <michael@paquier.xyz>
Tue, 22 Apr 2025 01:01:38 +0000 (10:01 +0900)
committerMichael Paquier <michael@paquier.xyz>
Tue, 22 Apr 2025 01:01:38 +0000 (10:01 +0900)
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

src/backend/utils/cache/inval.c
src/test/modules/injection_points/expected/syscache-update-pruned.out
src/test/modules/injection_points/expected/syscache-update-pruned_1.out
src/test/modules/injection_points/specs/syscache-update-pruned.spec

index c93679dfdcc8a7043887b64943cc6bdd2aa77580..fa7b4d7e303f958fef2b5f714a389e9eabc139c2 100644 (file)
@@ -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)
    {
index 9a9683bb4962570ab7f3dccd76e811a3601e55be..a6a4e8db996b15fce2d4bd58892d84ed56639ed3 100644 (file)
@@ -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>
index 64c39d708bd5fedae34ad2126bd2fc1f6d91aacd..4dca2b86bc888af8260ef2fb1e49bb609b86f90a 100644 (file)
@@ -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>
index 086d084de2577b8b0d9eadc934658260f415b252..e3a4295bd12e8a739a23fb4d0308286663fc3c32 100644 (file)
@@ -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  {