mirror of
https://github.com/postgres/postgres.git
synced 2025-07-05 07:21:24 +03:00
Be more clear when a new column name collides with a system column name.
We now use the same error message for ALTER TABLE .. ADD COLUMN or ALTER TABLE .. RENAME COLUMN that we do for CREATE TABLE. The old message was accurate, but might be confusing to users not aware of our system columns. Vik Reykja, with some changes by me, and further proofreading by Tom Lane
This commit is contained in:
@ -9,6 +9,8 @@ COMMENT ON TABLE tmp_wrong IS 'table comment';
|
||||
COMMENT ON TABLE tmp IS 'table comment';
|
||||
COMMENT ON TABLE tmp IS NULL;
|
||||
|
||||
ALTER TABLE tmp ADD COLUMN xmin integer; -- fails
|
||||
|
||||
ALTER TABLE tmp ADD COLUMN a int4 default 3;
|
||||
|
||||
ALTER TABLE tmp ADD COLUMN b name;
|
||||
|
Reference in New Issue
Block a user