Re: pg_comments

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pg_comments
Дата
Msg-id 20772.1284959236@sss.pgh.pa.us
обсуждение исходный текст
Ответ на pg_comments  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: pg_comments  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> In view of the foregoing problems, I'd like to propose adding a new
> system view, tentatively called pg_comments, which lists all of the
> comments for everything in the system in such a way that it's
> reasonably possible to do further filtering out the output in ways
> that you might care about; and which also gives objects the names and
> types in a format that matches what the COMMENT command will accept as
> input.  Patch attached.

Unless you propose to break psql's hard-won backwards compatibility,
this isn't going to accomplish anything towards making describe.c
simpler or shorter.  Also, it seems to me that what you've mostly done
is to move complexity from describe.c (where the query can be fixed
easily if it's found to be broken) to system_views.sql (where it cannot
be changed without an initdb).

How about improving the query in-place in describe.c instead?
        regards, tom lane


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: pg_comments
Следующее
От: Mark Kirkwood
Дата:
Сообщение: Re: Progress indication prototype