File tree 8 files changed +35
-41
lines changed
8 files changed +35
-41
lines changed Original file line number Diff line number Diff line change @@ -9,9 +9,9 @@ postgres_major:
9
9
10
10
# Full version strings for each major version
11
11
postgres_release :
12
- postgresorioledb-17 : " 17.0.1.067 -orioledb"
13
- postgres17 : " 17.4.1.017 "
14
- postgres15 : " 15.8.1.074 "
12
+ postgresorioledb-17 : " 17.0.1.068 -orioledb"
13
+ postgres17 : " 17.4.1.018 "
14
+ postgres15 : " 15.8.1.075 "
15
15
16
16
# Non Postgres Extensions
17
17
pgbouncer_release : " 1.19.0"
Original file line number Diff line number Diff line change 154
154
x :
155
155
x != ./nix/ext/timescaledb.nix &&
156
156
x != ./nix/ext/timescaledb-2.9.1.nix &&
157
- x != ./nix/ext/plv8.nix &&
158
- x != ./nix/ext/pgjwt.nix
157
+ x != ./nix/ext/plv8.nix
159
158
) ourExtensions ;
160
159
161
160
orioledbExtensions = orioleFilteredExtensions ++ [ ./nix/ext/orioledb.nix ] ;
162
- dbExtensions17 = orioleFilteredExtensions ;
161
+ dbExtensions17 = builtins . filter (
162
+ x :
163
+ x != ./nix/ext/pgjwt.nix
164
+ ) orioleFilteredExtensions ;
163
165
getPostgresqlPackage = version :
164
166
pkgs . postgresql . "postgresql_${ version } " ;
165
167
# Create a 'receipt' file for a given postgresql package. This is a way
Original file line number Diff line number Diff line change 22
22
begin
23
23
if exists (select 1 from pg_available_extensions where name = ' pgjwt' ) then
24
24
if not exists (select 1 from pg_extension where extname = ' pgjwt' ) then
25
- create extension if not exists pgjwt with schema " extensions" cascade;
25
+ if current_setting(' server_version_num' )::int / 10000 = 15 then
26
+ create extension if not exists pgjwt with schema " extensions" cascade;
27
+ end if;
26
28
end if;
27
29
end if;
28
30
end $$;
Original file line number Diff line number Diff line change @@ -495,13 +495,13 @@ begin
495
495
raise debug ' PgBouncer auth request: %' , p_usename;
496
496
497
497
return query
498
- select
499
- rolname::text ,
500
- case when rolvaliduntil < now()
501
- then null
502
- else rolpassword::text
503
- end
504
- from pg_authid
498
+ select
499
+ rolname::text ,
500
+ case when rolvaliduntil < now()
501
+ then null
502
+ else rolpassword::text
503
+ end
504
+ from pg_authid
505
505
where rolname= $1 and rolcanlogin;
506
506
end;
507
507
$_$;
Original file line number Diff line number Diff line change @@ -482,13 +482,13 @@ begin
482
482
raise debug ' PgBouncer auth request: %' , p_usename;
483
483
484
484
return query
485
- select
486
- rolname::text ,
487
- case when rolvaliduntil < now()
488
- then null
489
- else rolpassword::text
490
- end
491
- from pg_authid
485
+ select
486
+ rolname::text ,
487
+ case when rolvaliduntil < now()
488
+ then null
489
+ else rolpassword::text
490
+ end
491
+ from pg_authid
492
492
where rolname= $1 and rolcanlogin;
493
493
end;
494
494
$_$;
Original file line number Diff line number Diff line change @@ -496,13 +496,13 @@ begin
496
496
raise debug ' PgBouncer auth request: %' , p_usename;
497
497
498
498
return query
499
- select
500
- rolname::text ,
501
- case when rolvaliduntil < now()
502
- then null
503
- else rolpassword::text
504
- end
505
- from pg_authid
499
+ select
500
+ rolname::text ,
501
+ case when rolvaliduntil < now()
502
+ then null
503
+ else rolpassword::text
504
+ end
505
+ from pg_authid
506
506
where rolname= $1 and rolcanlogin;
507
507
end;
508
508
$_$;
Original file line number Diff line number Diff line change 61
61
begin
62
62
if exists (select 1 from pg_available_extensions where name = ' pgjwt' ) then
63
63
if not exists (select 1 from pg_extension where extname = ' pgjwt' ) then
64
- create extension if not exists pgjwt;
64
+ if current_setting(' server_version_num' )::int / 10000 = 15 then
65
+ create extension if not exists pgjwt;
66
+ end if;
65
67
end if;
66
68
end if;
67
69
end $$;
Original file line number Diff line number Diff line change @@ -170,18 +170,6 @@ check_orioledb_ready() {
170
170
return 1
171
171
}
172
172
173
- trim_schema () {
174
- case " $CURRENT_SYSTEM " in
175
- " x86_64-darwin" |" aarch64-darwin" )
176
- sed -i ' ' ' /INSERT INTO public.schema_migrations/,$d' " ./db/schema.sql"
177
- echo " Matched: $CURRENT_SYSTEM "
178
- ;;
179
- * )
180
- sed -i ' /INSERT INTO public.schema_migrations/,$d' " ./db/schema.sql"
181
- ;;
182
- esac
183
- }
184
-
185
173
perform_dump () {
186
174
local max_attempts=3
187
175
local attempt=1
You can’t perform that action at this time.
0 commit comments