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

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: "Alvaro Herrera" <alvherre(at)commandprompt(dot)com>
Cc: "Dimitri Fontaine" <dimitri(at)2ndquadrant(dot)fr>, "Andrew Dunstan" <andrew(at)dunslane(dot)net>, "pgsql-hackers" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: How to extract a value from a record using attnum or attname?
Date: 2011-02-23 16:43:19
Message-ID: 4D64E4C7020000250003AEF2@gw.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

Alvaro Herrera <alvherre(at)commandprompt(dot)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

Attachment Content-Type Size
tcn-2.patch text/plain 6.1 KB

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message runner 2011-02-23 16:49:13 Index names not consistent
Previous Message For@ll 2011-02-23 16:39:39 Backup WAL files and pg_standby

Browse pgsql-hackers by date

  From Date Subject
Next Message Jaime Casanova 2011-02-23 17:09:15 Re: Synchronous standby
Previous Message Jaime Casanova 2011-02-23 16:39:28 Re: Synchronous standbys?