supabase-postgres.git / summary / log / commit / refs
commit 6c81754c9fa33c888c41b5b6add99ef042fa08a0
Author: samrose <samuel@supabase.io>
Commit: GitHub <noreply@github.com>
Date: Tue Mar 25 02:03:48 2025 +0000
chore: set pg_graphql to stable rust (#1476)
* chore: set pg_graphql to stable rust
* chore: handle ports per version in test
* chore: pushed too soon. rm typo
* chore: suffix for testing
* chore: bump
* chore: remove unnecessary build flag
* chore: bump
* chore: need to link wal-g v2 correctly
* chore: bump
* Chore: bump to release
ansible/tasks/setup-wal-g.yml | 2 +-
ansible/vars.yml | 4 ++--
nix/ext/pg_graphql.nix | 9 ++++-----
3 files changed, 7 insertions(+), 8 deletions(-)
diff --git a/ansible/tasks/setup-wal-g.yml b/ansible/tasks/setup-wal-g.yml
index 5ba268cf..a05106ed 100644
--- a/ansible/tasks/setup-wal-g.yml
+++ b/ansible/tasks/setup-wal-g.yml
@@ -44,7 +44,7 @@
- name: Create symlink to make wal-g-v2 the default wal-g
ansible.builtin.file:
- src: /usr/local/bin/wal-g-v2
+ src: /home/wal-g/.nix-profile/bin/wal-g-2
dest: /usr/local/bin/wal-g
state: link
force: yes
diff --git a/ansible/vars.yml b/ansible/vars.yml
index da19e42e..5652df01 100644
--- a/ansible/vars.yml
+++ b/ansible/vars.yml
@@ -8,8 +8,8 @@ postgres_major:
# Full version strings for each major version
postgres_release:
- postgresorioledb-17: "17.0.1.052-orioledb"
- postgres15: "15.8.1.059"
+ postgresorioledb-17: "17.0.1.053-orioledb"
+ postgres15: "15.8.1.060"
# Non Postgres Extensions
pgbouncer_release: "1.19.0"
diff --git a/nix/ext/pg_graphql.nix b/nix/ext/pg_graphql.nix
index 54e50092..4ee04bac 100644
--- a/nix/ext/pg_graphql.nix
+++ b/nix/ext/pg_graphql.nix
@@ -1,8 +1,8 @@
{ lib, stdenv, fetchFromGitHub, postgresql, buildPgrxExtension_0_12_9, cargo, rust-bin }:
let
- rustVersion = "nightly";
- cargo = rust-bin.nightly.latest.default;
+ rustVersion = "1.81.0";
+ cargo = rust-bin.stable.${rustVersion}.default;
in
buildPgrxExtension_0_12_9 rec {
pname = "pg_graphql";
@@ -27,12 +27,11 @@ buildPgrxExtension_0_12_9 rec {
# Setting RUSTFLAGS in env to ensure it's available for all phases
env = lib.optionalAttrs stdenv.isDarwin {
POSTGRES_LIB = "${postgresql}/lib";
- PGPORT = "5434";
+ PGPORT = if (lib.versions.major postgresql.version) == "17" then "5440" else "5439";
RUSTFLAGS = "-C link-arg=-undefined -C link-arg=dynamic_lookup";
NIX_BUILD_CORES = "4"; # Limit parallel jobs
CARGO_BUILD_JOBS = "4"; # Limit cargo parallelism
};
-CARGO_BUILD_RUSTFLAGS = "--cfg tokio_unstable -C debuginfo=0";
CARGO_PROFILE_RELEASE_BUILD_OVERRIDE_DEBUG = true;
@@ -45,4 +44,4 @@ CARGO_BUILD_RUSTFLAGS = "--cfg tokio_unstable -C debuginfo=0";
platforms = postgresql.meta.platforms;
license = licenses.postgresql;
};
-}
\ No newline at end of file
+}
[parent: 9eaaa417a1f7]