Re: How to extract a value from a record using attnum or attname?

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: How to extract a value from a record using attnum or attname?
Дата
Msg-id 1298486418-sup-3515@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: How to extract a value from a record using attnum or attname?  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Ответы Re: How to extract a value from a record using attnum or attname?  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Список pgsql-hackers
Excerpts from Kevin Grittner's message of mié feb 23 13:43:19 -0300 2011:
> Alvaro Herrera <alvherre@commandprompt.com> wrote:
>  
> > I think it'd be better to use RelationGetIndexList (which gets the
> > index list from relcache) and fetch the index tuples from
> > syscache; see relationHasPrimaryKey for sample code.
>  
> Thanks.  Patch done that way attached.  Will get it into tomorrow's
> system testing here.

Why not use quote_identifier and quote_literal_cstr instead of this new
strcpy thing?  Also, you don't really need spi.h do you?

-- 
Álvaro Herrera <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: disposition of remaining patches
Следующее
От: Robert Haas
Дата:
Сообщение: Re: disposition of remaining patches