Re: Traversing the catalog using heap_open, systable_beginscan, ...

Tom Lane <[email protected]> Mon, 11 Nov 2013 21:03:14 -0500
Newsgroups gmane.comp.db.postgresql.interfaces
Message-ID <[email protected]>
Mark Crosland <[email protected]> writes:
> Thanks, that helps. I can get table and column info from the catalog now.
> What is the recommended way (structs to access via one of the scan/modify
> callbacks?) to retrieve the column, operation and value, "col", "=" and
> "val" in this example. And is the same method used for both queries and
> updates?
> select * from table where col=val

contrib/postgres_fdw might be a useful example for you.  A lot of this
stuff isn't documented terribly well, you just have to look for some
example code that does what you want to do.

			regards, tom lane


-- 
Sent via pgsql-interfaces mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-interfaces