"Lee Horowitz" <leeh@panix.com> writes:
> OK, so far so good. Now, just to be clear, are you saying in addition
> that the dblink(), insert,commit stuff has to be all "in line" in the
> original psql script and can't be in a pl/xxxx language?
No. The previous responses were about what you could do *directly* in a
PL function. They weren't considering the possibility of using dblink
to issue commands to another transaction.
regards, tom lane