X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 0A3A953587 for ; Tue, 3 May 2005 00:48:55 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 58026-04 for ; Tue, 3 May 2005 03:48:52 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 944BD53583 for ; Tue, 3 May 2005 00:48:51 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j433monj005135; Mon, 2 May 2005 23:48:50 -0400 (EDT) To: "C. Bensend" Cc: pgsql-admin@postgresql.org Subject: Re: Bad copy-n-paste on character conversion fix - how 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> Comments: In-reply-to "C. Bensend" message dated "Mon, 02 May 2005 20:58:32 -0500" Date: Mon, 02 May 2005 23:48:50 -0400 Message-ID: <5134.1115092130@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200505/14 X-Sequence-Number: 17443 "C. Bensend" 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