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


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: (view raw, whole thread or download thread mbox)
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                      
The PostgreSQL Company - Command Prompt, Inc.

In response to

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


  • 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
Previous:From: Andreas PflugDate: 2006-05-25 11:00:56
Subject: XLogArchivingActive

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