Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-hackers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group