Currently the postgres version is tagged to 12 on the docker-compose.development.yml file https://git.drupalcode.org/project/farm/-/blob/2.x/docker/docker-compose...
This might conflict with the version of the client installed in the web container https://git.drupalcode.org/project/farm/-/blob/2.x/docker/Dockerfile#L57
This can cause issues with drush sql:dump that uses pgdump as the version installed mismatches (client is 11, server is 12).
As a "quick and easy fix" we could match the client installed in the web docker file, for example:
RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list && \
cat /etc/apt/sources.list.d/pgdg.list && \
curl --silent https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - && \
apt-get update && \
apt-get install --no-install-recommends -y postgresql-client-12 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
Also, instead of tagging postgre 12, we can add an environment variable that could be set per client so the postgre is installed as 12 by default but other can be installed too
Active
3.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.