Re: DELETE FROM pg_description WHERE ... - Mailing list pgsql-admin

From Tom Lane
Subject Re: DELETE FROM pg_description WHERE ...
Date
Msg-id 1237.1303528918@sss.pgh.pa.us
Whole thread Raw
In response to DELETE FROM pg_description WHERE ...  (Erwin Brandstetter <brsaweda@gmail.com>)
Responses Re: DELETE FROM pg_description WHERE ...  (Erwin Brandstetter <brsaweda@gmail.com>)
List pgsql-admin
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

pgsql-admin by date:

Previous
From: Tom Lane
Date:
Subject: Re: select for update
Next
From: bo gu
Date:
Subject: a warm standby takes over, hot standby does not catch up