Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: merge 15.6 changes into develop #1368

Merged
merged 48 commits into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from 47 commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
549f9eb
fix: account for `public` grantee
soedirgo Sep 26, 2024
c83b1c6
fix(ci): respect postgresVersion input (#1237)
soedirgo Sep 26, 2024
5671a39
feat: bump gotrue version to v2.162.0 (#1241)
kangmingtay Sep 28, 2024
a2f1ff8
fix: only grant pg_read_all_data if it exists (#1242)
soedirgo Sep 30, 2024
d71ec5f
fix(15.6): account for pg_stat_monitor major version upgrade (#1247)
pcnc Oct 2, 2024
8706e3a
chore: release updates to run physical backup as a service to 15.6 im…
dragarcia Oct 2, 2024
1d1396e
fix(15.6/pg_upgrade): retry commands within the cleanup step; wait un…
pcnc Oct 2, 2024
320305e
fix(15.6/upgrades): collision when patching wrappers lib locations fo…
pcnc Oct 2, 2024
d264b9d
feat: bump auth 2.162.1 on 15.6 (#1256)
hf Oct 3, 2024
5177fa3
fix(15.6): disable pg_stat_monitor (#1260)
pcnc Oct 4, 2024
ce2eb0c
fix(15.6): disable pg_stat_monitor (#1262)
pcnc Oct 4, 2024
9062da4
feat: bump gotrue to v2.162.2 (#1264)
kangmingtay Oct 7, 2024
0c52b1f
chore: add timescaledb 2.9.1; wrappers upgrade fix; wrappers & plv8 n…
pcnc Oct 15, 2024
ba417af
chore(15.6): bump pg version (#1273)
pcnc Oct 15, 2024
82152fa
feat: bump auth to v2.163.0 on 15.6 (#1275)
hf Oct 15, 2024
1912ed8
fix: restart PG during pre-upgrade steps to shed hanging connections …
pcnc Oct 16, 2024
3cf6055
fix(upgrades): wrappers 4.2.0 -> wrappers 4.2.0 (#1278)
pcnc Oct 17, 2024
054dbc1
fix: handle supabase_admin authenticator membership snowflake
soedirgo Oct 21, 2024
fb024e8
feat: add auth v2.163.1 to 15.6 (#1283)
hf Oct 22, 2024
223952b
feat: bump gotrue to v2.163.2 (#1287)
kangmingtay Oct 23, 2024
2d658fc
pg_net 0.11 on 15.6 release branch (#1290)
olirice Oct 24, 2024
a5e5919
fix: don't copy custom extension scripts during pg_upgrade (#1291)
pcnc Oct 25, 2024
1211077
fix: add recursive flag to custom extension script directory delete (…
pcnc Oct 25, 2024
407d41a
[GEN-11027] chore: reserve a fixed amount of blocks for the data volu…
pcnc Oct 30, 2024
19ac493
fix: grant predefined roles post-upgrade
soedirgo Oct 31, 2024
21d3823
fix: add more roles to reserved_roles & reserved_memberships (#1303)
soedirgo Oct 31, 2024
1273c41
feat: update envoy lds config with auth jwks, oidc URLs, strip `sb-op…
hf Nov 1, 2024
936713c
chore: udpate package repo for salt (#1307)
dragarcia Nov 4, 2024
5350420
fix: use sudo for apt-get commands
soedirgo Nov 6, 2024
9e285dd
Update pg net to 0.13.0 on pg 15.6 branch (#1315)
olirice Nov 8, 2024
a627e17
chore: cleanup pgbouncer.get_auth ownership accordingly
dragarcia Nov 6, 2024
4b0e661
chore: standardize
dragarcia Nov 6, 2024
7065738
Upgrade pgvector to 0.8.0
pashkinelfe Nov 11, 2024
f34519d
Update common-nix.vars.pkr.hcl
pashkinelfe Nov 18, 2024
42c6d7e
feat: upgrade to auth v2.164.0 (#1329)
J0 Nov 21, 2024
bf452e4
fix: replace `alter routine` with `alter function|procedure` (#1333)
soedirgo Nov 21, 2024
3bc1710
fix: pg_upgrade_script (#1336)
pcnc Nov 21, 2024
d4bcb35
feat: supautils v2.5.0
soedirgo Nov 21, 2024
63303c6
pgmq in 15.6 image (#1337)
olirice Nov 25, 2024
6bbd27a
fix: upload gotrue binary to internal-artifacts as a gz file (#1340)
kangmingtay Nov 28, 2024
af0f41b
feat: upgrade to auth v2.165.0 (#1357)
cstockton Dec 6, 2024
57149e1
feat: bump gotrue to v2.165.1 (#1358)
kangmingtay Dec 6, 2024
34cbe36
feat: build and cache debug and src on this branch (#1360)
samrose Dec 6, 2024
8b3db2e
fix: pgmq ownership (#1362)
soedirgo Dec 9, 2024
bd0d566
Merge remote-tracking branch 'origin' into pcnc/merge-15.6
pcnc Dec 10, 2024
76d13a7
fix: remove duplicate pgmq in test
samrose Dec 10, 2024
51126a4
chore: filter timescale 2.9.1 on pg 16 and oriole17
samrose Dec 10, 2024
e5c6b8e
chore: bumping versions (#1370)
samrose Dec 12, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ ARG hypopg_release=1.3.1
ARG pgvector_release=0.4.0
ARG pg_tle_release=1.3.2
ARG index_advisor_release=0.2.0
ARG supautils_release=2.2.1
ARG supautils_release=2.5.0
ARG wal_g_release=2.0.1

####################
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,10 @@ begin
foreach obj in array functions
loop
if obj->>'owner' = 'postgres' then
execute(format('alter routine %s(%s) owner to postgres;', (obj->>'oid')::regproc, pg_get_function_identity_arguments((obj->>'oid')::regproc)));
execute(format('alter %s %s(%s) owner to postgres;'
, case when obj->>'kind' = 'p' then 'procedure' else 'function' end
, (obj->>'oid')::regproc
, pg_get_function_identity_arguments((obj->>'oid')::regproc)));
end if;
for rec in
select grantor, grantee, privilege_type, is_grantable
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
do $$
declare
extoid oid := (select oid from pg_extension where extname = 'pgmq');
r record;
begin
set local search_path = '';
update pg_extension set extowner = 'postgres'::regrole where extname = 'pgmq';
for r in (select * from pg_depend where refobjid = extoid) loop
if r.classid = 'pg_type'::regclass then
execute(format('alter type %s owner to postgres;', r.objid::regtype));
elsif r.classid = 'pg_proc'::regclass then
execute(format('alter function %s(%s) owner to postgres;', r.objid::regproc, pg_get_function_identity_arguments(r.objid)));
elsif r.classid = 'pg_class'::regclass then
execute(format('alter table %s owner to postgres;', r.objid::regclass));
else
raise exception 'error on pgmq after-create script: unexpected object type %', r.classid;
end if;
end loop;
end $$;
20 changes: 2 additions & 18 deletions ansible/manifest-playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,10 @@
- name: gotrue - download commit archive
get_url:
url: "https://github.com/supabase/gotrue/releases/download/v{{ gotrue_release }}/auth-v{{ gotrue_release }}-arm64.tar.gz"
dest: /tmp/gotrue.tar.gz
dest: /tmp/auth-v{{ gotrue_release }}-arm64.tar.gz
checksum: "{{ gotrue_release_checksum }}"
timeout: 60

- name: gotrue - create /tmp/gotrue
file:
path: /tmp/gotrue
state: directory
mode: 0775

- name: gotrue - unpack archive in /tmp/gotrue
unarchive:
remote_src: yes
src: /tmp/gotrue.tar.gz
dest: /tmp/gotrue

- name: gotrue - pack archive
shell: |
cd /tmp && tar -cJf gotrue-v{{ gotrue_release }}-arm64.tar.xz gotrue

- name: PostgREST - download ubuntu binary archive (arm)
get_url:
url: "https://github.com/PostgREST/postgrest/releases/download/v{{ postgrest_release }}/postgrest-v{{ postgrest_release }}-ubuntu-aarch64.tar.xz"
Expand Down Expand Up @@ -82,7 +66,7 @@
aws s3 cp /tmp/{{ item.file }} s3://{{ internal_artifacts_bucket }}/upgrades/{{ item.service }}/{{ item.file }}
with_items:
- service: gotrue
file: gotrue-v{{ gotrue_release }}-arm64.tar.xz
file: auth-v{{ gotrue_release }}-arm64.tar.gz
- service: postgrest
file: postgrest-{{ postgrest_release }}-arm64.tar.xz
- service: supabase-admin-api
Expand Down
8 changes: 4 additions & 4 deletions ansible/vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ timescaledb_release_checksum: sha256:883638f2e79d25ec88ee58f603f3c81c999b6364cb4
wal2json_release: "2_5"
wal2json_release_checksum: sha256:b516653575541cf221b99cf3f8be9b6821f6dbcfc125675c85f35090f824f00e

supautils_release: "2.2.1"
supautils_release_arm64_deb_checksum: sha256:1a2d2b8fe604d38921ed9cf3a0d56dd142a274035d0dca17ad21cdc81ddd9569
supautils_release_amd64_deb_checksum: sha256:4674fac146976dc179f5871271830718112f5eaa853bc461df9e303c8df2e1ab
supautils_release_tar_checksum: sha256:f1f33371390322ac830645b8b0b8e249cb8ca10b19fdeae917f383014ed01b5d
supautils_release: "2.5.0"
supautils_release_arm64_deb_checksum: sha256:406e4a816f719bd6c4b2143e9bb38078fbe60d7e85018ec0aed5d76924e28000
supautils_release_amd64_deb_checksum: sha256:71f182b478d8aaf167609dd382875cdce3fbe992e888988b3d51cdad39e08202
supautils_release_tar_checksum: sha256:07c41244e4374248da9c2df2822152f3ae8f1e74c8a92d361300480193219b63

pljava_release: master
pljava_release_checksum: sha256:e99b1c52f7b57f64c8986fe6ea4a6cc09d78e779c1643db060d0ac66c93be8b6
Expand Down
2 changes: 1 addition & 1 deletion docker/orioledb/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ ARG hypopg_release=1.3.1
ARG pgvector_release=0.4.0
ARG pg_tle_release=1.3.2
ARG index_advisor_release=0.2.0
ARG supautils_release=2.2.1
ARG supautils_release=2.5.0
ARG wal_g_release=2.0.1

####################
Expand Down
11 changes: 9 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
ourExtensions = [
./nix/ext/rum.nix
./nix/ext/timescaledb.nix
./nix/ext/timescaledb-2.9.1.nix
./nix/ext/pgroonga.nix
./nix/ext/index_advisor.nix
./nix/ext/wal2json.nix
Expand Down Expand Up @@ -144,7 +145,8 @@
#we're not using timescaledb in the orioledb version of supabase extensions
orioleFilteredExtensions = builtins.filter (
x:
x != ./nix/ext/timescaledb.nix &&
x != ./nix/ext/timescaledb.nix &&
x != ./nix/ext/timescaledb-2.9.1.nix &&
x != ./nix/ext/plv8.nix &&
x != ./nix/ext/postgis.nix &&
x != ./nix/ext/pgrouting.nix &&
Expand All @@ -153,7 +155,10 @@
) ourExtensions;

orioledbExtensions = orioleFilteredExtensions ++ [ ./nix/ext/orioledb.nix ];

pg16Extensions = builtins.filter (
x:
x != ./nix/ext/timescaledb-2.9.1.nix
) ourExtensions;
getPostgresqlPackage = version:
pkgs.postgresql."postgresql_${version}";
# Create a 'receipt' file for a given postgresql package. This is a way
Expand Down Expand Up @@ -197,6 +202,8 @@
postgresql = getPostgresqlPackage version;
extensionsToUse = if (builtins.elem version ["orioledb-16" "orioledb-17"])
then orioledbExtensions
else if version == "16"
then pg16Extensions
else ourExtensions;
in map (path: pkgs.callPackage path { inherit postgresql; }) extensionsToUse;

Expand Down
2 changes: 1 addition & 1 deletion nix/tests/prime.sql
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ create extension pg_graphql;
create extension pg_freespacemap;
create extension pg_hashids;
create extension pg_prewarm;
create extension pgmq;
create extension pg_jsonschema;
create extension pg_repack;
create extension pg_stat_monitor;
Expand All @@ -54,7 +55,6 @@ create extension pg_visibility;
create extension pg_walinspect;
create extension pgaudit;
create extension pgcrypto;
create extension pgmq;
create extension pgtap;
create extension pgjwt;
create extension pgroonga;
Expand Down
Loading