Re: drop column name conflict

2024-05-04 Thread Joseph Koshakow
On Sat, May 4, 2024 at 11:29 AM Tom Lane wrote: > I think we intentionally did not bother with preventing this, > on the grounds that if you were silly enough to name a column > that way then you deserve any ensuing problems. Fair enough. > If we were going to expend any code on the scenario, I'

Re: drop column name conflict

2024-05-04 Thread Tom Lane
Joseph Koshakow writes: > There's a rare edge case in `alter table` that can prevent users from > dropping a column as shown below > # create table atacc1(a int, "pg.dropped.1" int); > CREATE TABLE > # alter table atacc1 drop column a; > ERROR: duplicate key value

drop column name conflict

2024-05-04 Thread Joseph Koshakow
Hi all, There's a rare edge case in `alter table` that can prevent users from dropping a column as shown below # create table atacc1(a int, "pg.dropped.1" int); CREATE TABLE # alter table atacc1 drop column a; ERROR: duplicate key value violates unique constraint