Skip to content

Commit e9319fb

Browse files
committed
Bump PostgreSQL version used for tests: 17.5 → 17.6
1 parent 5020150 commit e9319fb

24 files changed

+163
-74
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class SchemaTest implements JUnit5ValidationFileAssertions {
8888
8989
@Container
9090
@ServiceConnection
91-
static PostgreSQLContainer<?> postgres = new PostgreSQLContainer<>("postgres:17.5");
91+
static PostgreSQLContainer<?> postgres = new PostgreSQLContainer<>("postgres:17.6");
9292
9393
@Test
9494
void schemaExport() {

data/test/validation/PostgresDumpTest/DatabaseWithData/testCleanAndCreate.txt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
-- PostgreSQL database dump
33
--
44

5-
-- Dumped from database version 17.5 (Debian 17.5-1.pgdg120+1)
6-
-- Dumped by pg_dump version 17.5 (Debian 17.5-1.pgdg120+1)
5+
\restrict RESTRICT_KEY1
6+
7+
-- Dumped from database version 17.6 (Debian 17.6-2.pgdg13+1)
8+
-- Dumped by pg_dump version 17.6 (Debian 17.6-2.pgdg13+1)
79

810
SET statement_timeout = 0;
911
SET lock_timeout = 0;
@@ -27,8 +29,10 @@ CREATE DATABASE "test-db" WITH TEMPLATE = template0 ENCODING = 'UTF8' LOCALE_PRO
2729

2830
ALTER DATABASE "test-db" OWNER TO "test-user";
2931

32+
\unrestrict RESTRICT_KEY1
3033
\encoding SQL_ASCII
3134
\connect -reuse-previous=on "dbname='test-db'"
35+
\restrict RESTRICT_KEY1
3236

3337
SET statement_timeout = 0;
3438
SET lock_timeout = 0;
@@ -102,3 +106,5 @@ ALTER TABLE ONLY public.employees
102106
--
103107
-- PostgreSQL database dump complete
104108
--
109+
110+
\unrestrict RESTRICT_KEY1

data/test/validation/PostgresDumpTest/DatabaseWithData/testCleanAndCreateIfExists.txt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
-- PostgreSQL database dump
33
--
44

5-
-- Dumped from database version 17.5 (Debian 17.5-1.pgdg120+1)
6-
-- Dumped by pg_dump version 17.5 (Debian 17.5-1.pgdg120+1)
5+
\restrict RESTRICT_KEY1
6+
7+
-- Dumped from database version 17.6 (Debian 17.6-2.pgdg13+1)
8+
-- Dumped by pg_dump version 17.6 (Debian 17.6-2.pgdg13+1)
79

810
SET statement_timeout = 0;
911
SET lock_timeout = 0;
@@ -27,8 +29,10 @@ CREATE DATABASE "test-db" WITH TEMPLATE = template0 ENCODING = 'UTF8' LOCALE_PRO
2729

2830
ALTER DATABASE "test-db" OWNER TO "test-user";
2931

32+
\unrestrict RESTRICT_KEY1
3033
\encoding SQL_ASCII
3134
\connect -reuse-previous=on "dbname='test-db'"
35+
\restrict RESTRICT_KEY1
3236

3337
SET statement_timeout = 0;
3438
SET lock_timeout = 0;
@@ -102,3 +106,5 @@ ALTER TABLE ONLY public.employees
102106
--
103107
-- PostgreSQL database dump complete
104108
--
109+
110+
\unrestrict RESTRICT_KEY1

data/test/validation/PostgresDumpTest/DatabaseWithData/testConnectViaHostName.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
-- PostgreSQL database dump
33
--
44

5-
-- Dumped from database version 17.5 (Debian 17.5-1.pgdg120+1)
6-
-- Dumped by pg_dump version 17.5 (Debian 17.5-1.pgdg120+1)
5+
\restrict RESTRICT_KEY1
6+
7+
-- Dumped from database version 17.6 (Debian 17.6-2.pgdg13+1)
8+
-- Dumped by pg_dump version 17.6 (Debian 17.6-2.pgdg13+1)
79

810
SET statement_timeout = 0;
911
SET lock_timeout = 0;
@@ -101,3 +103,5 @@ ALTER TABLE ONLY public.employees
101103
--
102104
-- PostgreSQL database dump complete
103105
--
106+
107+
\unrestrict RESTRICT_KEY1

data/test/validation/PostgresDumpTest/DatabaseWithData/testDataOnly.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
-- PostgreSQL database dump
33
--
44

5-
-- Dumped from database version 17.5 (Debian 17.5-1.pgdg120+1)
6-
-- Dumped by pg_dump version 17.5 (Debian 17.5-1.pgdg120+1)
5+
\restrict RESTRICT_KEY1
6+
7+
-- Dumped from database version 17.6 (Debian 17.6-2.pgdg13+1)
8+
-- Dumped by pg_dump version 17.6 (Debian 17.6-2.pgdg13+1)
79

810
SET statement_timeout = 0;
911
SET lock_timeout = 0;
@@ -44,3 +46,5 @@ COPY public.employees (id, first_name, last_name, email, hire_date, salary) FROM
4446
--
4547
-- PostgreSQL database dump complete
4648
--
49+
50+
\unrestrict RESTRICT_KEY1

data/test/validation/PostgresDumpTest/DatabaseWithData/testDump.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
-- PostgreSQL database dump
33
--
44

5-
-- Dumped from database version 17.5 (Debian 17.5-1.pgdg120+1)
6-
-- Dumped by pg_dump version 17.5 (Debian 17.5-1.pgdg120+1)
5+
\restrict RESTRICT_KEY1
6+
7+
-- Dumped from database version 17.6 (Debian 17.6-2.pgdg13+1)
8+
-- Dumped by pg_dump version 17.6 (Debian 17.6-2.pgdg13+1)
79

810
SET statement_timeout = 0;
911
SET lock_timeout = 0;
@@ -101,3 +103,5 @@ ALTER TABLE ONLY public.employees
101103
--
102104
-- PostgreSQL database dump complete
103105
--
106+
107+
\unrestrict RESTRICT_KEY1

data/test/validation/PostgresDumpTest/DatabaseWithData/testDumpExcludingTableData.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
-- PostgreSQL database dump
33
--
44

5-
-- Dumped from database version 17.5 (Debian 17.5-1.pgdg120+1)
6-
-- Dumped by pg_dump version 17.5 (Debian 17.5-1.pgdg120+1)
5+
\restrict RESTRICT_KEY1
6+
7+
-- Dumped from database version 17.6 (Debian 17.6-2.pgdg13+1)
8+
-- Dumped by pg_dump version 17.6 (Debian 17.6-2.pgdg13+1)
79

810
SET statement_timeout = 0;
911
SET lock_timeout = 0;
@@ -88,3 +90,5 @@ ALTER TABLE ONLY public.employees
8890
--
8991
-- PostgreSQL database dump complete
9092
--
93+
94+
\unrestrict RESTRICT_KEY1

data/test/validation/PostgresDumpTest/DatabaseWithData/testDumpSpecificSchemaOnly.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
-- PostgreSQL database dump
33
--
44

5-
-- Dumped from database version 17.5 (Debian 17.5-1.pgdg120+1)
6-
-- Dumped by pg_dump version 17.5 (Debian 17.5-1.pgdg120+1)
5+
\restrict RESTRICT_KEY1
6+
7+
-- Dumped from database version 17.6 (Debian 17.6-2.pgdg13+1)
8+
-- Dumped by pg_dump version 17.6 (Debian 17.6-2.pgdg13+1)
79

810
SET statement_timeout = 0;
911
SET lock_timeout = 0;
@@ -58,3 +60,5 @@ ALTER TABLE ONLY other_schema.persons
5860
--
5961
-- PostgreSQL database dump complete
6062
--
63+
64+
\unrestrict RESTRICT_KEY1

data/test/validation/PostgresDumpTest/DatabaseWithData/testDumpToFileExcludingTableData.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
-- PostgreSQL database dump
33
--
44

5-
-- Dumped from database version 17.5 (Debian 17.5-1.pgdg120+1)
6-
-- Dumped by pg_dump version 17.5 (Debian 17.5-1.pgdg120+1)
5+
\restrict RESTRICT_KEY1
6+
7+
-- Dumped from database version 17.6 (Debian 17.6-2.pgdg13+1)
8+
-- Dumped by pg_dump version 17.6 (Debian 17.6-2.pgdg13+1)
79

810
SET statement_timeout = 0;
911
SET lock_timeout = 0;
@@ -88,3 +90,5 @@ ALTER TABLE ONLY public.employees
8890
--
8991
-- PostgreSQL database dump complete
9092
--
93+
94+
\unrestrict RESTRICT_KEY1

data/test/validation/PostgresDumpTest/DatabaseWithData/testDumpVerbose.txt

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
-- PostgreSQL database dump
33
--
44

5-
-- Dumped from database version 17.5 (Debian 17.5-1.pgdg120+1)
6-
-- Dumped by pg_dump version 17.5 (Debian 17.5-1.pgdg120+1)
5+
\restrict RESTRICT_KEY1
6+
7+
-- Dumped from database version 17.6 (Debian 17.6-2.pgdg13+1)
8+
-- Dumped by pg_dump version 17.6 (Debian 17.6-2.pgdg13+1)
79

810
-- Started on [MASKED_TIMESTAMP] UTC
911

@@ -64,7 +66,7 @@ CREATE TABLE public.employees (
6466
ALTER TABLE public.employees OWNER TO "test-user";
6567

6668
--
67-
-- TOC entry 3364 (class 0 OID 16391)
69+
-- TOC entry 3428 (class 0 OID 16391)
6870
-- Dependencies: 219
6971
-- Data for Name: persons; Type: TABLE DATA; Schema: other_schema; Owner: test-user
7072
--
@@ -77,7 +79,7 @@ COPY other_schema.persons (id, name) FROM stdin;
7779

7880

7981
--
80-
-- TOC entry 3363 (class 0 OID 16385)
82+
-- TOC entry 3427 (class 0 OID 16385)
8183
-- Dependencies: 218
8284
-- Data for Name: employees; Type: TABLE DATA; Schema: public; Owner: test-user
8385
--
@@ -92,7 +94,7 @@ COPY public.employees (id, first_name, last_name, email, hire_date, salary) FROM
9294

9395

9496
--
95-
-- TOC entry 3217 (class 2606 OID 16397)
97+
-- TOC entry 3281 (class 2606 OID 16397)
9698
-- Name: persons persons_pkey; Type: CONSTRAINT; Schema: other_schema; Owner: test-user
9799
--
98100

@@ -101,7 +103,7 @@ ALTER TABLE ONLY other_schema.persons
101103

102104

103105
--
104-
-- TOC entry 3215 (class 2606 OID 16389)
106+
-- TOC entry 3279 (class 2606 OID 16389)
105107
-- Name: employees employees_pkey; Type: CONSTRAINT; Schema: public; Owner: test-user
106108
--
107109

@@ -114,3 +116,5 @@ ALTER TABLE ONLY public.employees
114116
--
115117
-- PostgreSQL database dump complete
116118
--
119+
120+
\unrestrict RESTRICT_KEY1

0 commit comments

Comments
 (0)