Re: Bug fix for tab completion of ALTER TABLE ... VALIDATE CONSTRAINT ...

Поиск
Список
Период
Сортировка
От Aleksander Alekseev
Тема Re: Bug fix for tab completion of ALTER TABLE ... VALIDATE CONSTRAINT ...
Дата
Msg-id CAJ7c6TPjd5ARCdjabewO6mF13v9toMwv72+nc1fMERpkSY3qRQ@mail.gmail.com
обсуждение исходный текст
Ответ на Bug fix for tab completion of ALTER TABLE ... VALIDATE CONSTRAINT ...  (David Fetter <david@fetter.org>)
Ответы Re: Bug fix for tab completion of ALTER TABLE ... VALIDATE CONSTRAINT ...
Re: Bug fix for tab completion of ALTER TABLE ... VALIDATE CONSTRAINT ...
Список pgsql-hackers
Hi David,

> I noticed that $subject completes with already valid constraints,
> please find attached a patch that fixes it. I noticed that there are
> other places constraints can be validated, but didn't check whether
> similar bugs exist there yet.

There was a typo in the patch ("... and and not convalidated"). I've fixed it. Otherwise the patch passes all the tests and works as expected:

eax=# create table foo (x int);
CREATE TABLE
eax=# alter table foo add constraint bar check (x < 3) not valid;
ALTER TABLE
eax=# alter table foo add constraint baz check (x <> 5) not valid;
ALTER TABLE
eax=# alter table foo validate constraint ba
bar baz
eax=# alter table foo validate constraint bar;
ALTER TABLE

--
Best regards,
Aleksander Alekseev
Вложения

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

Предыдущее
От: vignesh C
Дата:
Сообщение: Re: [HACKERS] logical decoding of two-phase transactions
Следующее
От: Fujii Masao
Дата:
Сообщение: Re: TRUNCATE on foreign table