>> See contrib/dblink. The version in cvs HEAD has two that return sets --> dblink() which returns an int, and dblink_get_pkey() which returns text.
Thanks, now I can see what I was doing wrong
Yours
Ian Barwick