RE: pgsql/src/backend/nodes (copyfuncs.c outfuncs.c print.c)

From: "Hiroshi Inoue" <Inoue(at)tpf(dot)co(dot)jp>
To: "Philip Warner" <pjw(at)rhyme(dot)com(dot)au>, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "pgsql-hackers" <pgsql-hackers(at)postgresql(dot)org>, <pgsql-committers(at)postgresql(dot)org>
Subject: RE: pgsql/src/backend/nodes (copyfuncs.c outfuncs.c print.c)
Date: 2000-10-29 13:39:07
Message-ID: EKEJJICOHDIEMGPNIFIJMEHKCLAA.Inoue@tpf.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

Tom,thanks for your good summary.
Seems this is the latest posting for this thread.

> -----Original Message-----
> From: Tom Lane
>
> Philip Warner <pjw(at)rhyme(dot)com(dot)au> writes:
> > Do you really think it's not such a good idea to have different
> optimizer
> > behaviour for SELECT and DECLARE CURSOR? My expectation is that
> putting a
> > SELECT statement inside a cursor should not change it's
> performance. I'd be
> > interested to know the reasons for your choice.
>
> I think it's an excellent idea to have different behaviors, and the
> reason is that we know a stand-alone SELECT will deliver all its result
> rows, whereas for DECLARE it's quite possible that not all the possible
> result rows will be fetched. Moreover, the user is likely to fetch the
> cursor's results in bite-size chunks, so he will be interested in
> average response time as well as total time.
>

Cursors have a different character from stand-alone SELECT.
We don't have to FETCH results continuously from cursors.
It's well known that an average response time is significant
in some applications. For example,we could make interactive
paging applications which require a next/prior page(small part
of the result of a query) according to user's request.

There may be more excellent ways to achive it but I don't
know how to do it in PostgreSQL.

Regards.
Hiroshi Inoue

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut - PostgreSQL 2000-10-29 16:11:33 pgsql/src/backend/parser (gram.y scan.l)
Previous Message Peter Eisentraut - PostgreSQL 2000-10-29 13:17:35 pgsql/src/include/port (aix.h beos.h bsdi.h dgux.h freebsd.h hpux.h irix5.h linux.h netbsd.h openbsd.h osf.h qnx4.h sco.h solaris.h sunos4.h svr4.h ultrix4.h univel.h unixware.h win.h)

Browse pgsql-hackers by date

  From Date Subject
Next Message Philip Warner 2000-10-29 14:23:32 Handler for plpgsql out of date?
Previous Message Peter Eisentraut 2000-10-29 11:50:40 Re: more multibyte/After TGL...