Thread: pgsql-server/contrib/dblink dblink.c

pgsql-server/contrib/dblink dblink.c

From
joe@svr1.postgresql.org (Joe Conway)
Date:
CVSROOT:    /cvsroot
Module name:    pgsql-server
Changes by:    joe@svr1.postgresql.org    04/02/24 02:07:18

Modified files:
    contrib/dblink : dblink.c

Log message:
    When returning type "record", replace use of pgresultGetTupleDesc
    with ReturnSetInfo->expectedDesc. This allows custom datatypes
    (e.g. from tsearch2) to be returned at runtime. Previous behavior
    depended on the type oid to match between the remote and local
    database, which obviously doesn't work well for custom types.
    Per report from Mark Gibson.