Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id E28381337B61 for ; Sat, 23 Apr 2011 20:01:23 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 35563-06 for ; Sat, 23 Apr 2011 23:01:06 +0000 (UTC) X-Greylist: delayed 00:07:07.971916 by SQLgrey-1.7.6 Received: from mail-bw0-f46.google.com (mail-bw0-f46.google.com [209.85.214.46]) by mail.postgresql.org (Postfix) with ESMTP id 0E587133616B for ; Sat, 23 Apr 2011 20:01:05 -0300 (ADT) Received: by bwz15 with SMTP id 15so1003496bwz.19 for ; Sat, 23 Apr 2011 16:01:05 -0700 (PDT) Received: by 10.204.18.193 with SMTP id x1mr2163311bka.79.1303599236758; Sat, 23 Apr 2011 15:53:56 -0700 (PDT) Received: from [192.168.2.100] (chello080109013165.10.14.univie.teleweb.at [80.109.13.165]) by mx.google.com with ESMTPS id q18sm2457139bka.3.2011.04.23.15.53.50 (version=SSLv3 cipher=OTHER); Sat, 23 Apr 2011 15:53:55 -0700 (PDT) Message-ID: <4DB35895.4040708@gmail.com> Date: Sun, 24 Apr 2011 00:54:13 +0200 From: Erwin Brandstetter User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 To: Tom Lane CC: pgsql-admin@postgresql.org Subject: Re: DELETE FROM pg_description WHERE ... References: <1237.1303528918@sss.pgh.pa.us> In-Reply-To: <1237.1303528918@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.899 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001 X-Spam-Level: X-Archive-Number: 201104/219 X-Sequence-Number: 37400 On 23.04.2011 05:21, Tom Lane wrote: > Erwin Brandstetter writes: >> However, I have a database with dozens of schemas and hundreds of >> tables. There is a bunch of useless comments on columns I want to get >> rid of, scattered all across the db. The fastest& easiest way would >> be: >> DELETE FROM pg_description WHERE description = 'My very special >> totally useless comment.'; >> AFAICS, there are no side-effects. Are there any? > It's safe enough, as long as you don't delete the wrong comments. > There's no hidden infrastructure for a comment. > > regards, tom lane > Thank you for your answers! Regards Erwin