Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id CBA301337BBB for ; Sat, 23 Apr 2011 00:22:07 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 78755-03 for ; Sat, 23 Apr 2011 03:22:00 +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 3717D1337999 for ; Sat, 23 Apr 2011 00:21:59 -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 p3N3LwCf001238; Fri, 22 Apr 2011 23:21:58 -0400 (EDT) To: Erwin Brandstetter cc: pgsql-admin@postgresql.org Subject: Re: DELETE FROM pg_description WHERE ... In-reply-to: References: Comments: In-reply-to Erwin Brandstetter message dated "Fri, 22 Apr 2011 09:26:43 -0700" Date: Fri, 22 Apr 2011 23:21:58 -0400 Message-ID: <1237.1303528918@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/217 X-Sequence-Number: 37398 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