From: Tom Lane <tgl@sss.pgh.pa.us>
To: C. Bensend <benny@bennyvision.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Bad copy-n-paste on character conversion fix - how
Date: Mon, 02 May 2005 23:48:50 -0400
Message-ID: <5134.1115092130@sss.pgh.pa.us> (raw)
In-Reply-To: <55769.63.227.74.41.1115085512.squirrel@webmail.stinkweasel.net>
References: <53520.63.227.74.41.1115082982.squirrel@webmail.stinkweasel.net>
<4471.1115084859@sss.pgh.pa.us>
<55769.63.227.74.41.1115085512.squirrel@webmail.stinkweasel.net>
"C. Bensend" <benny@bennyvision.com> writes:
> So, just to be sure:
> 1) Start a %(&@#*(&% transaction
> 2) Set the column to NULL for all rows, undoing my stupidity
> 3) Issue the CORRECT SQL statement, and that will take care of the
> character conversion problem
> 4) COMMIT said transaction after verifying that I'm not doing
> something stupid _again_
> Is this correct?
Right.
All this thrashing will have bloated pg_proc a bit (like a factor of
three...) so you might want to do a "VACUUM FULL pg_proc" after the dust
has settled. But that's a bit on the anal-retentive side considering
that pg_proc isn't really all that big. I offer it up merely for
educational purposes.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, benny@bennyvision.com
Subject: Re: Bad copy-n-paste on character conversion fix - how
In-Reply-To: <5134.1115092130@sss.pgh.pa.us>
References: <53520.63.227.74.41.1115082982.squirrel@webmail.stinkweasel.net> <4471.1115084859@sss.pgh.pa.us> <55769.63.227.74.41.1115085512.squirrel@webmail.stinkweasel.net> <5134.1115092130@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox