From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: pasman pasma*ski <pasman.p@gmail.com>
To: pgsql-performance@postgresql.org
Subject: Re: tidscan not work ? Pg 8.4.5 + WinXP
Date: Tue, 30 Nov 2010 10:44:06 -0600
Message-ID: <4CF4D5760200002500037F7D@gw.wicourts.gov> (raw)
In-Reply-To: <AANLkTimQhTkwM7_DU69XtKVNKqXTZebofzn1qysdOYBw@mail.gmail.com>
References: <AANLkTimQhTkwM7_DU69XtKVNKqXTZebofzn1qysdOYBw@mail.gmail.com>
pasman pasma*ski<pasman.p@gmail.com> wrote:
> How to use tid scans?
Write a query where they are the fastest way to retrieve the data,
and make sure your PostgreSQL installation is properly configured.
> This below not works :-( Always is used merge join.
> SELECT * FROM test1 join test2 on(test1.ctid=test2.ct)
You're reading through the entirety of two tables matching rows
between them. What makes you think random access would be faster
than sequential? If all this data is cached, then maybe random
access could win, but you would need to configure your PostgreSQL to
expect that.
Have you read this page:
http://wiki.postgresql.org/wiki/Tuning_Your_PostgreSQL_Server
-Kevin
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: Kevin.Grittner@wicourts.gov, pasman.p@gmail.com
Subject: Re: tidscan not work ? Pg 8.4.5 + WinXP
In-Reply-To: <4CF4D5760200002500037F7D@gw.wicourts.gov>
References: <AANLkTimQhTkwM7_DU69XtKVNKqXTZebofzn1qysdOYBw@mail.gmail.com> <4CF4D5760200002500037F7D@gw.wicourts.gov>
* 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