Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ FROM postgres:15-alpine AS pg15-builder
FROM postgres:16-alpine AS pg16-builder
FROM postgres:17-alpine AS pg17-builder
FROM postgres:18-alpine AS pg18-builder
FROM postgres:19-alpine AS pg19-builder

FROM alpine:latest AS tool-builder

Expand Down Expand Up @@ -159,6 +160,11 @@ COPY --from=pg18-builder /usr/local/bin/pg_dumpall /usr/local/pgsql/pgsql-18/
COPY --from=pg18-builder /usr/local/bin/pg_restore /usr/local/pgsql/pgsql-18/
COPY --from=pg18-builder /usr/local/bin/psql /usr/local/pgsql/pgsql-18/

COPY --from=pg19-builder /usr/local/bin/pg_dump /usr/local/pgsql/pgsql-19/
COPY --from=pg19-builder /usr/local/bin/pg_dumpall /usr/local/pgsql/pgsql-19/
COPY --from=pg19-builder /usr/local/bin/pg_restore /usr/local/pgsql/pgsql-19/
COPY --from=pg19-builder /usr/local/bin/psql /usr/local/pgsql/pgsql-19/
Comment thread
edbjunwang marked this conversation as resolved.
Resolved

#########################################################################
# Assemble everything into the final container.
#########################################################################
Expand Down Expand Up @@ -187,10 +193,10 @@ COPY --from=env-builder /venv /venv

# Copy in the tools
COPY --from=tool-builder /usr/local/pgsql /usr/local/
COPY --from=pg18-builder /usr/local/lib/libpq.so.5.18 /usr/local/lib/libpq-oauth-18.so /usr/lib/liblz4.so.1.10.0 /usr/lib/
COPY --from=pg19-builder /usr/local/lib/libpq.so.5.19 /usr/local/lib/libpq-oauth.so /usr/lib/liblz4.so.1.10.0 /usr/lib/

RUN ln -s libpq.so.5.18 /usr/lib/libpq.so.5 && \
ln -s libpq.so.5.18 /usr/lib/libpq.so && \
RUN ln -s libpq.so.5.19 /usr/lib/libpq.so.5 && \
ln -s libpq.so.5.19 /usr/lib/libpq.so && \
ln -s liblz4.so.1.10.0 /usr/lib/liblz4.so.1

WORKDIR /pgadmin4
Expand Down
4 changes: 4 additions & 0 deletions docs/en_US/container_deployment.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,16 @@ server:
* PostgreSQL 14: */usr/local/pgsql-14*
* PostgreSQL 15: */usr/local/pgsql-15*
* PostgreSQL 16: */usr/local/pgsql-16*
* PostgreSQL 17: */usr/local/pgsql-17*
* PostgreSQL 18: */usr/local/pgsql-18*
* PostgreSQL 19: */usr/local/pgsql-19*
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved

The default binary paths set in the container are as follows:

.. code-block:: bash

DEFAULT_BINARY_PATHS = {
'pg-19': '/usr/local/pgsql-19',
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
'pg-18': '/usr/local/pgsql-18',
'pg-17': '/usr/local/pgsql-17',
'pg-16': '/usr/local/pgsql-16',
Expand Down
3 changes: 2 additions & 1 deletion pkg/docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ CA_FILE = '/etc/ssl/certs/ca-certificates.crt'
LOG_FILE = '/dev/null'
HELP_PATH = '../../docs'
DEFAULT_BINARY_PATHS = {
'pg': '/usr/local/pgsql-18',
'pg': '/usr/local/pgsql-19',
'pg-19': '/usr/local/pgsql-19',
'pg-18': '/usr/local/pgsql-18',
'pg-17': '/usr/local/pgsql-17',
'pg-16': '/usr/local/pgsql-16',
Expand Down
8 changes: 6 additions & 2 deletions web/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,13 +539,15 @@
"pg-16": "",
"pg-17": "",
"pg-18": "",
"pg-19": "",
"ppas": "",
"ppas-13": "",
"ppas-14": "",
"ppas-15": "",
"ppas-16": "",
"ppas-17": "",
"ppas-18": ""
"ppas-18": "",
"ppas-19": ""
}

##########################################################################
Expand All @@ -561,13 +563,15 @@
"pg-16": "",
"pg-17": "",
"pg-18": "",
"pg-19": "",
Comment thread
dpage marked this conversation as resolved.
Resolved
"ppas": "",
"ppas-13": "",
"ppas-14": "",
"ppas-15": "",
"ppas-16": "",
"ppas-17": "",
"ppas-18": ""
"ppas-18": "",
"ppas-19": ""
}

##########################################################################
Expand Down
6 changes: 6 additions & 0 deletions web/pgadmin/utils/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@
"isDefault": False},
{"version": "180000", "next_major_version": "190000",
"serverType": gettext("EDB Advanced Server 18"), "binaryPath": None,
"isDefault": False},
{"version": "190000", "next_major_version": "200000",
"serverType": gettext("EDB Advanced Server 19"), "binaryPath": None,
"isDefault": False}
],
"pg_bin_paths": [
Expand All @@ -119,6 +122,9 @@
"isDefault": False},
{"version": "180000", "next_major_version": "190000",
"serverType": gettext("PostgreSQL 18"), "binaryPath": None,
"isDefault": False},
{"version": "190000", "next_major_version": "200000",
"serverType": gettext("PostgreSQL 19"), "binaryPath": None,
"isDefault": False}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,9 @@ def _update_preferences(self):
default_binary_path = self.server['default_binary_paths']
if default_binary_path is not None:
def get_server_version_string():
server_version = {180000: '18', 170000: '17', 160000: '16',
150000: '15', 140000: '14', 130000: '13'}
server_version = {190000: '19', 180000: '18', 170000: '17',
160000: '16', 150000: '15', 140000: '14',
130000: '13'}
for k, v in server_version.items():
if k <= self.server_information['server_version']:
return v
Expand Down
Loading