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

Re: tidscan not work ? Pg 8.4.5 + WinXP

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
Cc: pasman pasma*ski <pasman(dot)p(at)gmail(dot)com>, pgsql-performance(at)postgresql(dot)org
Subject: Re: tidscan not work ? Pg 8.4.5 + WinXP
Date: 2010-11-30 16:49:55
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-performance
"Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov> writes:
> pasman pasma*ski<pasman(dot)p(at)gmail(dot)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

In response to

pgsql-performance by date

Next:From: Kevin GrittnerDate: 2010-11-30 16:52:53
Subject: Re: postgresql statements are waiting
Previous:From: Kevin GrittnerDate: 2010-11-30 16:44:06
Subject: Re: tidscan not work ? Pg 8.4.5 + WinXP

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