Skip to content
This repository was archived by the owner on Mar 24, 2026. It is now read-only.

Update PostgresQL to version 13 - #6051

Merged
NateBrady23 merged 2 commits into
TechEmpower:masterfrom
sebastienros:patch-4
Oct 5, 2020
Merged

NateBrady23 merged 2 commits into
TechEmpower:masterfrom
sebastienros:patch-4

Conversation

@sebastienros

Copy link
Copy Markdown
Contributor

Fixes #6050

Not sure this is the fix you want to take since it might impact benchmarks.

Fixes TechEmpower#6050 

Not sure this is the fix you want to take since it might impact benchmarks.
@volyrique

Copy link
Copy Markdown
Contributor

Shouldn't we stop hardcoding version numbers? At the very least not inside the configuration files and not in the paths.

RUN apt-get -yqq install locales

ENV PG_VERSION 12
ENV PG_VERSION 13

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe add a PG_VERSION mask in postgresql.conf and replace it from here:

RUN sed -i "s|PG_VERSION|${PG_VERSION}|g" postgresql.conf

data_directory = '/ssd/postgresql' # use data in another directory
# (change requires restart)
hba_file = '/etc/postgresql/12/main/pg_hba.conf' # host-based authentication file
hba_file = '/etc/postgresql/13/main/pg_hba.conf' # host-based authentication file

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hba_file = '/etc/postgresql/PG_VERSION/main/pg_hba.conf'

@sebastienros

Copy link
Copy Markdown
Contributor Author

@jcheron I think this PR solves it in a better way by pinning PG 12 at the source: #6052

And in PG13 the default conf file is different, so I don't think making it a constant here makes sense, since bumping to13 should also change the conf file completely.

@NateBrady23
NateBrady23 merged commit 4d01979 into TechEmpower:master Oct 5, 2020
@jcheron

jcheron commented Oct 5, 2020

Copy link
Copy Markdown
Contributor

PR #6052 generates a 404 error on package downloads...
It is necessary to modify the list of packages without using the provided list file (which has the disadvantage of being also hard-coded).

RUN echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release  -sc || cat /etc/*-release|grep -oP  'CODENAME=\K\w+$'|head -1)-pgdg main" > /etc/apt/sources.list.d/pgdg.list

@sebastienros
sebastienros deleted the patch-4 branch October 5, 2020 22:26
tomciopp pushed a commit to tomciopp/FrameworkBenchmarks that referenced this pull request Oct 21, 2020
* Update PostgresQL to version 13

Fixes TechEmpower#6050 

Not sure this is the fix you want to take since it might impact benchmarks.

* Update postgresql.conf
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

postgres.dockerfile doesn't build

4 participants