Re: A tidbit I spotted while playing in tablecmds.c

2018-12-19 Thread Andres Freund
Hi, On 2018-12-19 18:22:28 -0500, Greg Stark wrote: > I think this is a bug: > > postgres=# alter table only x2 add if not exists i integer; > ERROR: 42701: column "i" of relation "x2" already exists > > Note that it does not occur without the ONLY: > > postgres=# alter table x2 add if not ex

A tidbit I spotted while playing in tablecmds.c

2018-12-19 Thread Greg Stark
I think this is a bug: postgres=# alter table only x2 add if not exists i integer; ERROR: 42701: column "i" of relation "x2" already exists Note that it does not occur without the ONLY: postgres=# alter table x2 add if not exists i integer; NOTICE: 42701: column "i" of relation "x2" already e