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

Kevin Grittner <kevin.grittner@wicourts.gov>

From: "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
To: "Alvaro Herrera" <alvherre@commandprompt.com>
Cc: "Dimitri Fontaine" <dimitri@2ndquadrant.fr>, "Andrew Dunstan" <andrew@dunslane.net>, "pgsql-hackers" <pgsql-hackers@postgresql.org>
Date: 2011-02-23T16:43:19Z
Lists: pgsql-hackers

Attachments

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.
 
-Kevin