Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#21326] YSQL: Fix PG15 PgCatalogVersionTest.DBCatalogVersionGlobalDD…
…L failure Summary: The test PgCatalogVersionTest.DBCatalogVersionGlobalDDL and PgCatalogVersionTest.DBCatalogVersionDisableGlobalDDL currently fail in PG15 branch with an error like: ``` Bad status: Network error (yb/yql/pgwrapper/libpq_utils.cc:340): Execute of 'CREATE TABLE t4(id INT) TABLESPACE test_tsp' failed: 7, message: ERROR: permission denied for schema public LINE 1: CREATE TABLE t4(id INT) TABLESPACE test_tsp ^ (pgsql error 42501) (aux msg ERROR: permission denied for schema public LINE 1: CREATE TABLE t4(id INT) TABLESPACE test_tsp ^) ``` This is because SCHEMA public is more restrictive in PG15 compared with PG11 where the current YSQL master branch is based upon. This diff adjust the test by granting CREATE privilege on SCHEMA public to all users so that these two tests can pass in both master branch (PG11 based) and the PG15 branch. Jira: DB-10229 Test Plan: (1) In master branch ./yb_build.sh --cxx-test pg_catalog_version-test (2) Apply the patch to PG15 branch ./yb_build.sh --cxx-test pg_catalog_version-test Reviewers: jason Reviewed By: jason Subscribers: aagrawal, yql Differential Revision: https://phorge.dev.yugabyte.com/D32897
- Loading branch information