Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
Thread:
Lists: pgsql-committerspgsql-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

pgsql-hackers by date

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

pgsql-committers by date

Next:From: Peter Eisentraut - PostgreSQLDate: 2000-10-29 16:11:33
Subject: pgsql/src/backend/parser (gram.y scan.l)
Previous:From: Peter Eisentraut - PostgreSQLDate: 2000-10-29 13:17:35
Subject: 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)

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group