From db53dc056e02bb936e7a1f834e7359f0a28eb6d4 Mon Sep 17 00:00:00 2001 From: Eduardo Melo Date: Fri, 20 Mar 2026 17:02:43 -0300 Subject: [PATCH] fix: upgrade postgresql-client from 15 to 17 pg_dump 15 refuses to dump PostgreSQL 17.x servers, causing "aborting because of server version mismatch" errors. Made-with: Cursor --- .ci/40-delivery/app.Dockerfile | 7 +------ INSTALL_PG_DUMP.md | 8 ++++---- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/.ci/40-delivery/app.Dockerfile b/.ci/40-delivery/app.Dockerfile index 90578e9..664a949 100644 --- a/.ci/40-delivery/app.Dockerfile +++ b/.ci/40-delivery/app.Dockerfile @@ -1,10 +1,5 @@ FROM python:3.10-slim-bullseye@sha256:17de35f7050abebfd9bf15ec0efd94d2bda7b1a569337d99f2881d325042f952 -# First dependency block is for postgres 15 repository -# Second block is for Psycopg2 -# Curl block is to download the key for the Postgres repository -# Echo block is to add the repository to the sources list - RUN apt update && \ apt install -y \ dirmngr ca-certificates software-properties-common apt-transport-https lsb-release curl \ @@ -14,7 +9,7 @@ RUN apt update && \ echo deb [arch=amd64,arm64,ppc64el signed-by=/usr/share/keyrings/postgresql.gpg] http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main | \ tee /etc/apt/sources.list.d/postgresql.list && \ apt update && \ - apt install -y postgresql-client-15 && \ + apt install -y postgresql-client-17 && \ groupadd --system -g 1001 themaker \ && useradd --system --create-home -g 1001 --no-user-group -u 1001 themaker WORKDIR /home/themaker diff --git a/INSTALL_PG_DUMP.md b/INSTALL_PG_DUMP.md index 446287c..8958def 100644 --- a/INSTALL_PG_DUMP.md +++ b/INSTALL_PG_DUMP.md @@ -1,6 +1,6 @@ # PostgreSQL Client Installation Guide -This guide provides step-by-step instructions on how to install the PostgreSQL 15 client on your system using the official PostgreSQL APT repository. Follow these steps to ensure a successful installation. +This guide provides step-by-step instructions on how to install the PostgreSQL 17 client on your system using the official PostgreSQL APT repository. Follow these steps to ensure a successful installation. ## Prerequisites @@ -34,12 +34,12 @@ After adding the new repository, update your APT package index again to include sudo apt update ``` -### 4. Install PostgreSQL 15 Client +### 4. Install PostgreSQL 17 Client -Now, install the PostgreSQL 15 client package: +Now, install the PostgreSQL 17 client package: ```shell -sudo apt install postgresql-client-15 +sudo apt install postgresql-client-17 ``` ### 5. Verify the Installation