Use VacuumParams by value. master
authorTeodor Sigaev <teodor@sigaev.ru>
Thu, 2 Apr 2026 11:41:26 +0000 (14:41 +0300)
committerTeodor Sigaev <teodor@sigaev.ru>
Thu, 2 Apr 2026 11:41:26 +0000 (14:41 +0300)
  Caused by:
  - 2252fcd4276cfeabae8786ab7c5a421dd674743e (PostgreSQL)
    Rationalize handling of VacuumParams

Melnikov Anton <a.melnikov@postgrespro.ru>

online_analyze.c

index 0479dbf..363a5ae 100644 (file)
@@ -647,7 +647,12 @@ makeAnalyze(Oid relOid, CmdKind operation, int64 naffected)
 #if PG_VERSION_NUM < 120000
                        flags,
 #endif
-                       &vacstmt, NULL, true, GetAccessStrategy(BAS_VACUUM)
+#if PG_VERSION_NUM >= 190000
+                       vacstmt,
+#else
+                       &vacstmt,
+#endif
+                       NULL, true, GetAccessStrategy(BAS_VACUUM)
 #endif
                );