sql: support writes to columns added in a transaction #43057
Labels
A-schema-descriptors
Relating to SQL table/db descriptor handling.
A-schema-transactional
A-sql-pgcompat
Semantic compatibility with PostgreSQL
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
T-sql-foundations
SQL Foundations Team (formerly SQL Schema + SQL Sessions)
Projects
This issue is being peeled out as a sub-issue of #42061, specifically around the problem and proposal put forth in this comment: #42061 (comment).
Please refer to the above comment for a bunch of commentary. The short summary is that columns added to tables using
ALTER TABLE ... ADD COLUMN
statements in a transaction are not available for use after that statement in the same transaction. Postgres permits immediate use of the new column.Relates to #40862
I'll move content from the referenced thread into this issue as it settles.
Jira issue: CRDB-5300
The text was updated successfully, but these errors were encountered: