Re:

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re:
Дата
Msg-id 20060525122647.GK3159@surnet.cl
обсуждение исходный текст
Ответ на  ("ipig" <ipig@ercist.iscas.ac.cn>)
Ответы Re:
Список 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.


В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Massimiliano Poletto"
Дата:
Сообщение: Re: problem with PQsendQuery/PQgetResult and COPY FROM statement
Следующее
От: korry
Дата:
Сообщение: Re: file-locking and postmaster.pid