Re: DELETE FROM pg_description WHERE ...

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Re: DELETE FROM pg_description WHERE ...
Дата
Msg-id BANLkTikCbyLiad2C9ELzMMxecJ1-bD69fg@mail.gmail.com
обсуждение исходный текст
Ответ на DELETE FROM pg_description WHERE ...  (Erwin Brandstetter <brsaweda@gmail.com>)
Ответы Re: DELETE FROM pg_description WHERE ...  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-admin
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

В списке pgsql-admin по дате отправления:

Предыдущее
От: Craig James
Дата:
Сообщение: Re: select for update
Следующее
От: Tom Lane
Дата:
Сообщение: Re: DELETE FROM pg_description WHERE ...