Skip to content

Main + PG_MAJOR not working in sources.list.d #677

Description

@hyperknot

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions