I'm puzzled by this line.
|
echo "deb http://apt.postgresql.org/pub/repos/apt/ stretch-pgdg main $PG_MAJOR" > /etc/apt/sources.list.d/pgdg.list; \ |
According to postgresql IRC channel, 11 instead of Main has the purpose of installing client libraries for a specific version, for example libpq5.
However the way it is here, it'll add Main and 11, resulting in:
apt-cache policy libpq5
libpq5:
Installed: 12.2-1.pgdg16.04+1
Candidate: 12.2-1.pgdg16.04+1
Version table:
*** 12.2-1.pgdg16.04+1 500
500 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main amd64 Packages
100 /var/lib/dpkg/status
11.7-1.pgdg16.04+1 500
500 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/11 amd64 Packages
It of course means that the latest version from Main gets installed. Pretty much that makes the whole 11 part useless.
Not a big problem, as the Main version is supposed to be stable, but still, interesting regarding this line was changed from the Main only version some time ago.
I'm puzzled by this line.
postgres/11/Dockerfile
Line 85 in d21499f
According to postgresql IRC channel, 11 instead of Main has the purpose of installing client libraries for a specific version, for example libpq5.
However the way it is here, it'll add Main and 11, resulting in:
It of course means that the latest version from Main gets installed. Pretty much that makes the whole 11 part useless.
Not a big problem, as the Main version is supposed to be stable, but still, interesting regarding this line was changed from the Main only version some time ago.