Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 073E9133655C for ; Sun, 24 Apr 2011 13:27:59 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 28971-08 for ; Sun, 24 Apr 2011 16:27:52 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 80BC813364DE for ; Sun, 24 Apr 2011 13:27:51 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p3OGRkus022837; Sun, 24 Apr 2011 12:27:46 -0400 (EDT) To: Simon Riggs cc: Erwin Brandstetter , pgsql-admin Subject: Re: DELETE FROM pg_description WHERE ... In-reply-to: References: Comments: In-reply-to Simon Riggs message dated "Sun, 24 Apr 2011 16:25:09 +0100" Date: Sun, 24 Apr 2011 12:27:46 -0400 Message-ID: <22836.1303662466@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201104/222 X-Sequence-Number: 37403 Simon Riggs writes: > On Fri, Apr 22, 2011 at 5:26 PM, Erwin Brandstetter wrote: >> DELETE FROM pg_description WHERE description = 'My very special >> totally useless comment.'; > Why would you *not* use the COMMENT command for that? If what he wants is to drop comments containing a particular string, COMMENT isn't an especially easy way to do it. regards, tom lane