M12.4: retain and settle owned population intervals
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 2m28s
Foundation / checks (tsan) (push) Failing after 18m22s
Foundation / checks (network) (push) Successful in 20m38s
Foundation / checks (client) (push) Failing after 21m6s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (postgres) (push) Canceled after 46m54s
Foundation / checks (checks) (push) Canceled after 47m3s
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 2m28s
Foundation / checks (tsan) (push) Failing after 18m22s
Foundation / checks (network) (push) Successful in 20m38s
Foundation / checks (client) (push) Failing after 21m6s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (postgres) (push) Canceled after 46m54s
Foundation / checks (checks) (push) Canceled after 47m3s
This commit is contained in:
+14
-3
@@ -120,6 +120,7 @@ SELECT EXISTS (SELECT 1 FROM pg_catalog.pg_namespace WHERE nspname='evolution')
|
||||
SELECT :'history_v41' || ',42:' || :'migration_sha_42' AS history_v42 \gset
|
||||
SELECT :'history_v42' || ',43:' || :'migration_sha_43' AS history_v43 \gset
|
||||
SELECT :'history_v43' || ',44:' || :'migration_sha_44' AS history_v44 \gset
|
||||
SELECT :'history_v44' || ',45:' || :'migration_sha_45' AS history_v45 \gset
|
||||
SELECT :'history' = :'history_v22' AS at_v22,
|
||||
:'history' = :'history_v23' AS at_v23,
|
||||
:'history' = :'history_v24' AS at_v24,
|
||||
@@ -142,8 +143,10 @@ SELECT EXISTS (SELECT 1 FROM pg_catalog.pg_namespace WHERE nspname='evolution')
|
||||
:'history' = :'history_v41' AS at_v41,
|
||||
:'history' = :'history_v42' AS at_v42,
|
||||
:'history' = :'history_v43' AS at_v43,
|
||||
:'history' = :'history_v44' AS at_v44 \gset
|
||||
\if :at_v44
|
||||
:'history' = :'history_v44' AS at_v44,
|
||||
:'history' = :'history_v45' AS at_v45 \gset
|
||||
\if :at_v45
|
||||
\elif :at_v44
|
||||
\elif :at_v43
|
||||
\elif :at_v42
|
||||
\elif :at_v41
|
||||
@@ -525,7 +528,8 @@ SELECT coalesce(max(version), 0) = 24 AS at_v24,
|
||||
coalesce(max(version), 0) = 41 AS at_v41,
|
||||
coalesce(max(version), 0) = 42 AS at_v42,
|
||||
coalesce(max(version), 0) = 43 AS at_v43,
|
||||
coalesce(max(version), 0) = 44 AS at_v44
|
||||
coalesce(max(version), 0) = 44 AS at_v44,
|
||||
coalesce(max(version), 0) = 45 AS at_v45
|
||||
FROM evolution.schema_migrations \gset
|
||||
\if :at_v24
|
||||
\ir 0025_cellular_v2_bundle.sql
|
||||
@@ -738,6 +742,7 @@ SELECT coalesce(max(version), 0) = 24 AS at_v24,
|
||||
\ir 0043_cellular_v9_foraging_bundle.sql
|
||||
\elif :at_v43
|
||||
\elif :at_v44
|
||||
\elif :at_v45
|
||||
\else
|
||||
\echo 'Unknown or changed migration history after v43'
|
||||
DO $$ BEGIN RAISE EXCEPTION 'unknown or changed migration history'; END $$;
|
||||
@@ -746,6 +751,10 @@ SELECT coalesce(max(version), 0) = 43 AS needs_v44 FROM evolution.schema_migrati
|
||||
\if :needs_v44
|
||||
\ir 0044_exact_population_publication.sql
|
||||
\endif
|
||||
SELECT coalesce(max(version), 0) = 44 AS needs_v45 FROM evolution.schema_migrations \gset
|
||||
\if :needs_v45
|
||||
\ir 0045_owned_population_intervals.sql
|
||||
\endif
|
||||
-- Effective-privilege audit on every run, including no-ops (ADR-0060). Attributes
|
||||
-- alone are insufficient: predefined roles such as pg_write_all_data, PUBLIC
|
||||
-- grants or SET-able memberships would bypass the fenced functions. Checks the
|
||||
@@ -765,6 +774,8 @@ BEGIN
|
||||
UNION
|
||||
SELECT m.member FROM pg_catalog.pg_auth_members m JOIN closure c ON m.roleid = c.oid
|
||||
), fenced(oid) AS (VALUES
|
||||
('evolution.admit_population_interval(evolution.u64,evolution.u64,uuid,evolution.u64,uuid,bytea,evolution.u64)'::regprocedure::oid),
|
||||
('evolution.load_population_interval(evolution.u64,evolution.u64,uuid,evolution.u64)'::regprocedure::oid),
|
||||
('evolution.publish_population_checkpoint(bytea,bytea)'::regprocedure::oid),
|
||||
('evolution.publish_population_profile_transition(bytea)'::regprocedure::oid),
|
||||
('evolution.resolve_population_commit(evolution.u64,evolution.u64,uuid,bytea,bytea)'::regprocedure::oid),
|
||||
|
||||
Reference in New Issue
Block a user