Services for PostgreSQL 11 and 12 fail to start: "Assertion failed on job for postgresql@11-main.service"

Oh, sorry, it is your configuration.

Our documentation


advises you to have this:

addons:
  postgresql: "11"
  apt:
    packages:
    - postgresql-11
    - postgresql-client-11

which indeed works.

Please try that.