alter table add x wrong error position

Поиск
Список
Период
Сортировка
От jian he
Тема alter table add x wrong error position
Дата
Msg-id CACJufxHU9ZdA=-Q+fg_+v+6OJ-L05rez8_mNZBrKghYD_g04XA@mail.gmail.com
обсуждение исходный текст
Ответы Re: alter table add x wrong error position  ("David G. Johnston" <david.g.johnston@gmail.com>)
Re: alter table add x wrong error position  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Список pgsql-hackers
hi.
Maybe this is a small printout err_position bug.

create table atacc2 ( test int, a int, b int) ;
success tests:
alter table atacc2 add CONSTRAINT x PRIMARY KEY (id, b );
alter table atacc2 add CONSTRAINT x PRIMARY KEY (id, b a);
alter table atacc2 add CONSTRAINT x PRIMARY KEYa (id, b);

tests have problem:
alter table atacc2 add constraints x unique (test, a, b);
ERROR:  syntax error at or near "("
LINE 1: alter table atacc2 add constraints x unique (test, a, b);

          ^
ADD either following with the optional keyword "COLUMN" or
"CONSTRAINT"  as the doc.
so I should expect the '^' point at "constraints"?



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Amul Sul
Дата:
Сообщение: Re: introduce dynamic shared memory registry
Следующее
От: "Tristan Partin"
Дата:
Сообщение: Re: psql not responding to SIGINT upon db reconnection