From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
Cc: | ipig <ipig(at)ercist(dot)iscas(dot)ac(dot)cn>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: |
Date: | 2006-05-25 13:45:02 |
Message-ID: | 200605251345.k4PDj2r25015@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Alvaro Herrera wrote:
> 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().
Or just look in the code to see how other code is calling heap_open().
--
Bruce Momjian http://candle.pha.pa.us
EnterpriseDB http://www.enterprisedb.com
+ If your life is a hard drive, Christ can be your backup. +
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2006-05-25 13:54:27 | Re: Rename standard_conforming_strings to standard_strings |
Previous Message | Bruce Momjian | 2006-05-25 13:40:57 | Rename standard_conforming_strings to standard_strings |