From: Tom Lane <tgl@sss.pgh.pa.us>
To: Erwin Brandstetter <brsaweda@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: DELETE FROM pg_description WHERE ...
Date: Fri, 22 Apr 2011 23:21:58 -0400
Message-ID: <1237.1303528918@sss.pgh.pa.us> (raw)
In-Reply-To: <da0a7ec9-70de-4017-a514-8d62596f13f7@x10g2000vbn.googlegroups.com>
References: <da0a7ec9-70de-4017-a514-8d62596f13f7@x10g2000vbn.googlegroups.com>
Erwin Brandstetter <brsaweda@gmail.com> 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
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, brsaweda@gmail.com
Subject: Re: DELETE FROM pg_description WHERE ...
In-Reply-To: <1237.1303528918@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