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

From Tom Lane
Subject Re: Bad copy-n-paste on character conversion fix - how screwed am I?
Date
Msg-id 4471.1115084859@sss.pgh.pa.us
Whole thread Raw
In response to Bad copy-n-paste on character conversion fix - how screwed am I?  ("C. Bensend" <benny@bennyvision.com>)
Responses Re: Bad copy-n-paste on character conversion fix - how  ("C. Bensend" <benny@bennyvision.com>)
List 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 by date:

Previous
From: "C. Bensend"
Date:
Subject: Bad copy-n-paste on character conversion fix - how screwed am I?
Next
From: "C. Bensend"
Date:
Subject: Re: Bad copy-n-paste on character conversion fix - how