Mark Crosland <mark.crosland@gmail.com> 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