Re: Bad copy-n-paste on character conversion fix - how screwed am I?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Bad copy-n-paste on character conversion fix - how screwed am I?
Дата
Msg-id 4471.1115084859@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Bad copy-n-paste on character conversion fix - how screwed am I?  ("C. Bensend" <benny@bennyvision.com>)
Ответы Re: Bad copy-n-paste on character conversion fix - how
Список pgsql-admin
"C. Bensend" <benny@bennyvision.com> writes:
>    The following erroneous command was entered:
> UPDATE pg_proc SET proacl = '{=}'
> ;
>    .. instead of the correct one (missing the WHERE clause).  It
> updated 1747 rows - oh crap.

Always a good idea to do this kind of thing inside a BEGIN block ;-)

As far as the system functions are concerned, you can just set the
proacl column to NULL (ie, default) and that'll be fine for everything
except the character conversion functions.

As far as user-defined functions are concerned, NULL probably works for
most of them too, but you would want to consult a recent backup to see
if any were not like that.

            regards, tom lane

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

Предыдущее
От: "C. Bensend"
Дата:
Сообщение: Bad copy-n-paste on character conversion fix - how screwed am I?
Следующее
От: "C. Bensend"
Дата:
Сообщение: Re: Bad copy-n-paste on character conversion fix - how