drupal with postgres in docker: throws exception after install
It looks like drupal:8-apache
does not support this postgres:12
I tried:
image: postgres:10
And the exception is no longer occurs.
If you really want to use Postgresql 12, you could apply this fix.
TL;DR here is a sed command to patch this image:
sed -i "s/OR pg_attrdef.adsrc LIKE 'nextval%')/OR pg_get_expr(pg_attrdef.adbin, pg_attribute.attrelid) LIKE 'nextval%')/g" ./core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php