In a PostgreSQL database, if any tables are created after the manage-postgres-user.py has run, those tables will not have the same privileges as the ones existing prior to this run.
ALTER DEFAULT PRIVILEGES needs to be added as an extra statement once the privileges have been set so that the same behaviour remains on newly created tables.
References:
In a PostgreSQL database, if any tables are created after the
manage-postgres-user.pyhas run, those tables will not have the same privileges as the ones existing prior to this run.ALTER DEFAULT PRIVILEGESneeds to be added as an extra statement once the privileges have been set so that the same behaviour remains on newly created tables.References: