Traversing the catalog using heap_open, systable_beginscan, ...

From: Mark Crosland <mark(dot)crosland(at)gmail(dot)com>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: Traversing the catalog using heap_open, systable_beginscan, ...
Date: 2013-11-09 05:37:02
Message-ID: CAJjS_dOXaAkKRoso1J3ShQXoBmA=SFxtiN9vNqGHq9fn4bbYhw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Tom Lane 2013-11-09 16:12:17 Re: Traversing the catalog using heap_open, systable_beginscan, ...
Previous Message P R 2013-10-28 12:07:19 Histappend In Psql?