Re: Read rows from a table and process - Need pointers

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Read rows from a table and process - Need pointers
Дата
Msg-id 1515617.1652766131@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Read rows from a table and process - Need pointers  (Amul Sul <sulamul@gmail.com>)
Список pgsql-novice
Amul Sul <sulamul@gmail.com> writes:
> On Mon, May 16, 2022 at 11:57 PM mahendrakar s
> <mahendrakarforpg@gmail.com> wrote:
>> I have a table test with two columns varchar and json. I need to open test table and read the rows (string and json
object)and process them inside pg extension 'C' code. 
>> How to do this?  There is table_open function in pg code but it requires OID as input parameter.

> See if table_openrv() works for you.

More fundamentally, why do you want to operate at such a low level
in the first place?  The SPI APIs are often more fit for purpose.

            regards, tom lane



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

Предыдущее
От: Amul Sul
Дата:
Сообщение: Re: Read rows from a table and process - Need pointers
Следующее
От: mahendrakar s
Дата:
Сообщение: Comparing two URL strings