pgsql: Disallow converting a table to a view within an outer SQL comman

2024-04-30 Thread Tom Lane
Disallow converting a table to a view within an outer SQL command. We have long disallowed all forms of ALTER TABLE if the table is already opened by some outer SQL command in the same session. This has the same purpose as obtaining AccessExclusiveLock, but since a session's own locks don't confli

pgsql: Disallow converting a table to a view within an outer SQL comman

2024-04-30 Thread Tom Lane
Disallow converting a table to a view within an outer SQL command. We have long disallowed all forms of ALTER TABLE if the table is already opened by some outer SQL command in the same session. This has the same purpose as obtaining AccessExclusiveLock, but since a session's own locks don't confli

pgsql: Disallow converting a table to a view within an outer SQL comman

2024-04-30 Thread Tom Lane
Disallow converting a table to a view within an outer SQL command. We have long disallowed all forms of ALTER TABLE if the table is already opened by some outer SQL command in the same session. This has the same purpose as obtaining AccessExclusiveLock, but since a session's own locks don't confli

pgsql: Disallow converting a table to a view within an outer SQL comman

2024-04-30 Thread Tom Lane
Disallow converting a table to a view within an outer SQL command. We have long disallowed all forms of ALTER TABLE if the table is already opened by some outer SQL command in the same session. This has the same purpose as obtaining AccessExclusiveLock, but since a session's own locks don't confli