Traversing the catalog using heap_open, systable_beginscan, ... - Mailing list pgsql-interfaces

From Mark Crosland
Subject Traversing the catalog using heap_open, systable_beginscan, ...
Date
Msg-id CAJjS_dOXaAkKRoso1J3ShQXoBmA=SFxtiN9vNqGHq9fn4bbYhw@mail.gmail.com
Whole thread Raw
Responses Re: Traversing the catalog using heap_open, systable_beginscan, ...  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-interfaces
Hello,

I am writing a foreign data wrapper and following the oracle example. Are there docs that discuss heap_open, systable_beginscan and systable_getnext?

I currently just need to do simple stuff, like translate an Oid that is received via a FDW callback into the text name of a table. I see all of the catalog headers, pg_class.h, etc... but not seeing the pattern of which args to pass into ScanKeyInit to traverse the catalog correctly.

Hints greatly appreciated.
If there is a better list, please point me to it.

Thanks,
Mark

pgsql-interfaces by date:

Previous
From: P R
Date:
Subject: Histappend In Psql?
Next
From: Tom Lane
Date:
Subject: Re: Traversing the catalog using heap_open, systable_beginscan, ...