Re: dblink: add polymorphic functions.

From: Corey Huinker <corey(dot)huinker(at)gmail(dot)com>
To: Joe Conway <mail(at)joeconway(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Heikki Linnakangas <hlinnaka(at)iki(dot)fi>, Merlin Moncure <mmoncure(at)gmail(dot)com>, Michael Paquier <michael(dot)paquier(at)gmail(dot)com>, PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org>, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
Subject: Re: dblink: add polymorphic functions.
Date: 2015-07-29 18:01:00
Message-ID: CADkLM=fWLeAUntWKUDfdj-O4OEkyeDUfEYjEc1wTzv22ps9g=A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

>
> Ok, gotcha. So Tom's nearby comment about allowing the
> "p_rowtype%TYPE" syntax to be used in the CAST is spot on (as usual).
> In other words, to get a complete solution for you we would need to
> make both things work, so you could do this inside plpgsql:
>
> select * from cast(dblink(connstr, sql) as p_rowtype%TYPE);
>
> where potentially connstr, sql, p_rowtype are all passed to plpgsql as
> arguments. Correct?
>

Correct.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2015-07-29 18:18:49 Re: Reduce ProcArrayLock contention
Previous Message Joe Conway 2015-07-29 17:53:26 Re: dblink: add polymorphic functions.