Re: [RFC] Common object property boards

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [RFC] Common object property boards
Дата
Msg-id 29147.1311961770@sss.pgh.pa.us
обсуждение исходный текст
Ответ на [RFC] Common object property boards  (Kohei Kaigai <Kohei.Kaigai@EMEA.NEC.COM>)
Ответы Re: [RFC] Common object property boards
Re: [RFC] Common object property boards
Список pgsql-hackers
Kohei Kaigai <Kohei.Kaigai@EMEA.NEC.COM> writes:
> In addition to this suggestion, I think the big static array also contains
> the following items:
> - Text form of the object type (e.g, "table", "function", ...)

What will you do with that that wouldn't be better done by calling
getObjectDescription?  The latter's output is somewhat localizable, but
individual words would be hard to translate.

> Does the main lookup function ought to return an entry of the big array?
> If so, the definition of structure should be declared in objectaddress.h,
> as follows:

It would likely be better to not expose the struct type, just individual
lookup functions.

> And, a translation from ObjectType to type name (e.g "table", "type", ...)
> is helpful to generate error messages.

>   const char *get_object_type_name(ObjectType objtype);

Again, I think this is too low level because of message translation
considerations.
        regards, tom lane


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

Предыдущее
От: Matt Keranen
Дата:
Сообщение: Re: OT: OFF TOPIC: returning multiple result sets from a stored procedure
Следующее
От: Nikhil Sontakke
Дата:
Сообщение: Re: Check constraints on partition parents only?