From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Hirohama <kamesan@ricochet.net>
Cc: pgsql-hackers@postgreSQL.org
Cc: pgsql-interfaces@postgreSQL.org
Subject: Re: [HACKERS] Re: retrieving varchar size
Date: Thu, 30 Apr 1998 16:36:05 -0400
Message-ID: <13212.893968565@sss.pgh.pa.us> (raw)
In-Reply-To: <l03110705b1698217f47d@[204.179.136.2]>
Michael Hirohama <kamesan@ricochet.net> wrote:
> The historical reason why the POSTGRES backend is required to send multiple
> result sets is to support cursors on queries involving type inheritance and
> anonymous target lists.
> begin
> declare c cursor for
> select e.oid, e.* from EMP* e
> fetch 10 in c
> ...
> To handle the command sequence above, frontend applications would need to
> be provided with a new result descriptor when the "fetch 10 in c" crosses a
> result set boundary.
I tried this and was unable to produce a failure. It looks like the
select only returns the set of fields applicable to the base class,
regardless of what additional fields may be possessed by some
subclasses. Which, in fact, is more or less what I'd expect.
Is Michael remembering some old behavior that is no longer implemented?
And if so, is the old or new behavior the correct one?
regards, tom lane
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-interfaces@postgresql.org
Cc: tgl@sss.pgh.pa.us, kamesan@ricochet.net, pgsql-hackers@postgreSQL.org
Subject: Re: [HACKERS] Re: retrieving varchar size
In-Reply-To: <13212.893968565@sss.pgh.pa.us>
* 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