Aleksander Alekseev d7eaa55a47 Override the default ACL for public schema on PG15
Since PG15, by default, non-superuser accounts are not allowed to create
tables in public schema of databases they don't own. This default can be
changed manually. This patch ensures that the permissions are going to be the
same regardless of the used PostgreSQL version.

Without this patch, none of our tests pass on PG15 because they fail with the
"access denied to schema public" error. This is why runner.sh was modified.
Then, some other tests keep failing because when we call create_distributed_hypertable()
we create a new database on each of the data nodes, also not granting enough
permissions to non-privileged users. This is what the fix of data_node.c
addresses.

This is not necessarily the best approach possible, but it preserves the same
behavior on PostgreSQL >= 15 and PostgreSQL < 15. Maybe one day we will come up
with something better (especially when there will be no need to support PG < 15)
but until then the patch seems to be good enough.

https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=b073c3cc
2021-12-23 16:18:17 +03:00
..
2021-12-22 08:12:11 +01:00
2021-11-22 15:04:10 +01:00
2021-12-22 08:12:11 +01:00
2021-11-15 14:54:14 +03:00
2021-11-15 14:54:14 +03:00
2021-11-15 14:54:14 +03:00