pgsql: Make materialized views participate in predicate locking

2022-11-30 Thread Michael Paquier
Make materialized views participate in predicate locking Matviews have been discarded from needing predicate locks since 3bf3ab8 and their introduction. At this point, there was no concurrent flavor of REFRESH yet, hence there was no meaning in having materialized views look at read/write conflic

pgsql: Reject missing database name in pg_regress and cohorts.

2022-11-30 Thread Tom Lane
Reject missing database name in pg_regress and cohorts. Writing "pg_regress --dbname= ..." led to a crash, because we weren't expecting there to be no database name supplied. It doesn't seem like a great idea to run regression tests in whatever is the user's default database; so rather than suppor

pgsql: Reject missing database name in pg_regress and cohorts.

2022-11-30 Thread Tom Lane
Reject missing database name in pg_regress and cohorts. Writing "pg_regress --dbname= ..." led to a crash, because we weren't expecting there to be no database name supplied. It doesn't seem like a great idea to run regression tests in whatever is the user's default database; so rather than suppor

pgsql: Reject missing database name in pg_regress and cohorts.

2022-11-30 Thread Tom Lane
Reject missing database name in pg_regress and cohorts. Writing "pg_regress --dbname= ..." led to a crash, because we weren't expecting there to be no database name supplied. It doesn't seem like a great idea to run regression tests in whatever is the user's default database; so rather than suppor

pgsql: Reject missing database name in pg_regress and cohorts.

2022-11-30 Thread Tom Lane
Reject missing database name in pg_regress and cohorts. Writing "pg_regress --dbname= ..." led to a crash, because we weren't expecting there to be no database name supplied. It doesn't seem like a great idea to run regression tests in whatever is the user's default database; so rather than suppor

pgsql: Reject missing database name in pg_regress and cohorts.

2022-11-30 Thread Tom Lane
Reject missing database name in pg_regress and cohorts. Writing "pg_regress --dbname= ..." led to a crash, because we weren't expecting there to be no database name supplied. It doesn't seem like a great idea to run regression tests in whatever is the user's default database; so rather than suppor

pgsql: Reject missing database name in pg_regress and cohorts.

2022-11-30 Thread Tom Lane
Reject missing database name in pg_regress and cohorts. Writing "pg_regress --dbname= ..." led to a crash, because we weren't expecting there to be no database name supplied. It doesn't seem like a great idea to run regression tests in whatever is the user's default database; so rather than suppor

pgsql: Bump catalog version for previous commit

2022-11-30 Thread Alvaro Herrera
Bump catalog version for previous commit Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/8f2e74bf87e8c60c4984924caa67b723c51e0a6e Modified Files -- src/include/catalog/catversion.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

pgsql: Stop accessing checkAsUser via RTE in some cases

2022-11-30 Thread Alvaro Herrera
Stop accessing checkAsUser via RTE in some cases A future commit will move the checkAsUser field from RangeTblEntry to a new node that, unlike RTEs, will only be created for tables mentioned in the query but not for the inheritance child relations added to the query by the planner. So, checkAsUse