Re: increment_by@

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: increment_by@
Дата
Msg-id 5710.1055282100@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: increment_by@  (John Smith <john_smith_45678@yahoo.com>)
Список pgsql-general
John Smith <john_smith_45678@yahoo.com> writes:
> This did the trick:
> update pg_attribute set attname='increment_by' where
> attname like 'increment_by@%';

Good.

> Not sure what the problem with this was:
> update pg_attribute set attname='increment_by' where
> attrelid=457191;
> ERROR:  Cannot insert a duplicate key into unique
> index pg_attribute_relid_attnam_index

There would be multiple rows with that attrelid, so the error is correct
(and fortunate ;-)).  You'd have had to specify both attrelid and attnum
to have a unique key.

            regards, tom lane

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

Предыдущее
От: Dmitry Tkach
Дата:
Сообщение: Re: Weird postmaster crashes
Следующее
От: John Smith
Дата:
Сообщение: PG error checking?