Re: proposal: auxiliary functions for record type

Поиск
Список
Период
Сортировка
От Darren Duncan
Тема Re: proposal: auxiliary functions for record type
Дата
Msg-id 4D030C09.8020806@darrenduncan.net
обсуждение исходный текст
Ответ на proposal: auxiliary functions for record type  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-hackers
Pavel Stehule wrote:
> Hello
> 
> I wrote a few functions for record type - record_expand,
> record_get_fields, record_get_field, record_set_fields.
> 
> A usage of this functions is described in my blog
> http://okbob.blogspot.com/2010/12/iteration-over-record-in-plpgsql.html
> 
> Do you think, so these functions can be in core? These are relative
> strong and enough general with zero dependency. Sure, these functions
> are not defined in ANSI SQL.
> 
> Regards
> 
> Pavel Stehule

That looks good in principle.  I see it as being valuable and important that 
users can define generic relational operators/functions, meaning ones that can 
work with any relations like built-ins can, and the ability to iterate over 
record fields, or at least introspect a relation to see what fields it has, is a 
good foundation to support this. -- Darren Duncan


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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: proposal: auxiliary functions for record type
Следующее
От: Vaibhav Kaushal
Дата:
Сообщение: Re: Anyone for SSDs?