Re: Creating table with data from a join - Mailing list pgsql-general

From Marc Mamin
Subject Re: Creating table with data from a join
Date
Msg-id B6F6FD62F2624C4C9916AC0175D56D8828C0423B@jenmbs01.ad.intershop.net
Whole thread Raw
In response to Re: Creating table with data from a join  (Igor Stassiy <istassiy@gmail.com>)
List pgsql-general
> Marc, I am using postgres 9.4. I didn't benchmark, but intuitively the modulo operator will force traversing every
recordin table "a" 4 times, as it can't use an index.
 

Not necessarily. seq scans can be synchronized:

"This allows sequential scans of large tables to synchronize with each other, so that concurrent scans read the same
blockat about the same time and hence share the I/O workload. When this is enabled, a scan might start in the middle of
thetable and then "wrap around" the end to cover all rows, so as to synchronize with the activity of scans already in
progress.This can result in unpredictable changes in the row ordering returned by queries that have no ORDER BY
clause."

Marc

pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: unexpected data beyond EOF in block 260 of relation pg_tblspc
Next
From: Ryan King - NOAA Affiliate
Date:
Subject: Re: could not create shared memory segment: Invalid argument