Re: Bug in pg_describe_object, patch v2

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Bug in pg_describe_object, patch v2
Дата
Msg-id 20293.1294943078@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Bug in pg_describe_object, patch v2  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: Bug in pg_describe_object, patch v2  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> On Wed, Jan 12, 2011 at 7:47 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> IMO, what this patch needs is to not output the types unless they are
>> actually different from the default (which can be inferred from the AM
>> type and the function arguments). That would fix my concern about it
>> emitting information that is 99.44% useless.

> I guess we could do that, but I don't understand how you're supposed
> to infer them, which means probably a lot of other people won't
> either.

Read the CREATE OPERATOR CLASS source code.  (It likely would be best to
refactor that a bit so it would expose some way to obtain the implied
defaults --- I don't think that's done explicitly now, and it's
certainly not exported from opclasscmds.c.)
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Possible bug in pg_settings/pg_depend
Следующее
От: Tom Lane
Дата:
Сообщение: Re: kill -KILL: What happens?