From: Jeff Trout <threshar@torgo.978.org>
To: pgsql-sql@postgresql.org
Subject: DBLink or setof record functions & type shortcuts
Date: Wed, 19 Dec 2007 10:23:16 -0500
Message-ID: <9A3471C2-F486-493B-89C5-E390904D74C9@torgo.978.org> (raw)
So I'm using dblink to run a query on another db, which works fine.
I'm wondering if there is some shortcut I can use since I have the
type the remote function is returning defined on my side so I don't
need to list all the columns -
so instead of select * from dblink('select * from
someFooTypeReturningFunc()') as t1(col text, ....)
I could write select * from dblink('select ... ') as t1(footype)
I've poked over the docs and googled around, haven't seen anything yet.
--
Jeff Trout <jeff@jefftrout.com>
http://www.dellsmartexitin.com/http://www.stuarthamm.net/
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: threshar@torgo.978.org
Subject: Re: DBLink or setof record functions & type shortcuts
In-Reply-To: <9A3471C2-F486-493B-89C5-E390904D74C9@torgo.978.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox