Re:

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: ipig <ipig(at)ercist(dot)iscas(dot)ac(dot)cn>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re:
Date: 2006-05-25 12:26:47
Message-ID: 20060525122647.GK3159@surnet.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

ipig wrote:

> 2.1) How do I efficiently access information in tables from the backend code?
> Since heap_open function needs the oid of the relation, how can I get
> those parameters for heap_open?
>
> Suppose that at the beginning, I only know the name of the relation,
> which functions I need to call?

You can create a RangeVar using makeRangeVar and call heap_openrv().

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

In response to

  • at 2006-05-25 05:58:00 from ipig

Responses

  • Re: at 2006-05-25 13:45:02 from Bruce Momjian

Browse pgsql-hackers by date

  From Date Subject
Next Message korry 2006-05-25 12:35:14 Re: file-locking and postmaster.pid
Previous Message Andreas Pflug 2006-05-25 11:00:56 XLogArchivingActive