Re: tidscan not work ? Pg 8.4.5 + WinXP - Mailing list pgsql-performance

From Tom Lane
Subject Re: tidscan not work ? Pg 8.4.5 + WinXP
Date
Msg-id 28019.1291135795@sss.pgh.pa.us
Whole thread Raw
In response to Re: tidscan not work ? Pg 8.4.5 + WinXP  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
List pgsql-performance
"Kevin Grittner" <Kevin.Grittner@wicourts.gov> writes:
> pasman pasma*ski<pasman.p@gmail.com> wrote:
>> 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?

FWIW, it isn't going to happen anyway, because the TID scan mechanism
doesn't support scanning based on a join condition.  That hasn't gotten
to the top of the to-do list because the use case is almost vanishingly
small.  ctids generally aren't stable enough for it to be useful to
store references to one table's ctids in another table.

            regards, tom lane

pgsql-performance by date:

Previous
From: "Kevin Grittner"
Date:
Subject: Re: tidscan not work ? Pg 8.4.5 + WinXP
Next
From: "Kevin Grittner"
Date:
Subject: Re: postgresql statements are waiting