Skip to content

Commit 4b2f568

Browse files
authored
docker: include vanilla debian postgres client (#10269)
## Problem We are chasing down segfaults in the storage controller neondatabase/cloud#21010 This is for use by the storage controller, which links dynamically with `libpq`. We currently use the neon-built libpq, but this may be unsafe for use from multi-threaded programs like the controller, as it uses a statically linked openssl Precursor to #10258 ## Summary of changes - Include `postgresql-15` in container builds. The reason for using version 15 is simply because that is what's available in Debian 12 without adding any extra repositories, and we don't have any special need for latest version in our libpq usage.
1 parent a77e87a commit 4b2f568

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ RUN set -e \
6969
libreadline-dev \
7070
libseccomp-dev \
7171
ca-certificates \
72+
# System postgres for use with client libraries (e.g. in storage controller)
73+
postgresql-15 \
7274
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
7375
&& useradd -d /data neon \
7476
&& chown -R neon:neon /data

0 commit comments

Comments
 (0)