From: Andreas Kretschmer <akretschmer@spamfence.net>
To: pgsql-performance@postgresql.org
To: pgsql-sql@postgresql.org
Subject: Re: [SQL] two queryes in a single tablescan
Date: Sat, 20 Oct 2007 19:19:39 +0200
Message-ID: <20071020171938.GA24518@KanotixBox> (raw)
In-Reply-To: <20071020125824.75df357c@kingfisher.sec.intern.logix-tt.com>
References: <290a5abc0710170530v215cb2b0q4fa000ad43096a28@mail.gmail.com>
<20071020125824.75df357c@kingfisher.sec.intern.logix-tt.com>
Markus Schaber <schabi@logix-tt.com> schrieb:
> > is there any way to get both results in a single query,
> > eventually through stored procedure?
> > The retrieved [count(*),A] ; [count(*),B)] data couldnt fit
> > on a single table, of course.
> >
> > The main goal would be to get multiple results while scanning the
> > table[s] once only
> > thus getting results in a faster way.
>
> PostgreSQL 8.3 contains great improvements in this area, you can simply
> start the selects from concurrent connections, and the backend will
> synchronize the scans.
works this right across different transactions? I mean, for instance, TX
a insert rows and TX b insert other rows and both clients (with
different transactions) starts a seq-scan?
Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect. (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly." (unknow)
Kaufbach, Saxony, Germany, Europe. N 51.05082°, E 13.56889°
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: akretschmer@spamfence.net, pgsql-performance@postgresql.org
Subject: Re: [SQL] two queryes in a single tablescan
In-Reply-To: <20071020171938.GA24518@KanotixBox>
* 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