From: Simon Riggs <simon@2ndQuadrant.com>
To: Erwin Brandstetter <brsaweda@gmail.com>
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: DELETE FROM pg_description WHERE ...
Date: Sun, 24 Apr 2011 16:25:09 +0100
Message-ID: <BANLkTikCbyLiad2C9ELzMMxecJ1-bD69fg@mail.gmail.com> (raw)
In-Reply-To: <da0a7ec9-70de-4017-a514-8d62596f13f7@x10g2000vbn.googlegroups.com>
References: <da0a7ec9-70de-4017-a514-8d62596f13f7@x10g2000vbn.googlegroups.com>
On Fri, Apr 22, 2011 at 5:26 PM, Erwin Brandstetter <brsaweda@gmail.com> wrote:
> Hi!
>
> It is generally not advisable to write to system catalogs directly ...
>
> 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.';
Why would you *not* use the COMMENT command for that?
What is slower or harder about using it?
--
Simon Riggs http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
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: simon@2ndQuadrant.com, brsaweda@gmail.com
Subject: Re: DELETE FROM pg_description WHERE ...
In-Reply-To: <BANLkTikCbyLiad2C9ELzMMxecJ1-bD69fg@mail.gmail.com>
* 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