Re: SQL statement over 500% slower with 9.2 compared with 9.1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 08/28/2013 09:08 PM, Tom Lane wrote:
[..........]

> 
> If you don't want to do any major rewriting, you could probably
> stick an OFFSET 0 into the outer EXISTS sub-select (and/or the
> inner one) to get something similar to the 9.1 plan.
> 

Thank you for your help.

Using OFFSET 0 in

SELECT  *
FROM    FilmParticipation C
WHERE   C.partType = 'cast'
AND C.filmId = D.filmId
AND C.personId = D.personId
OFFSET 0

give us a result similar to 9.1.

This SQL is used as an example in one of the database courses at the
University. I will send them this information and they can decide if
they want to rewrite the statement or use the OFFSET trick.

regards,
- -- 
 Rafael Martinez Guerrero
 Center for Information Technology
 University of Oslo, Norway

 PGP Public Key: http://folk.uio.no/rafael/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)

iEYEARECAAYFAlIm1/8ACgkQBhuKQurGihRAogCePl6G51w8dfYMruj+qSm4Vsjl
coMAn2sjyv6PcfsKhASC7ct0WI4YKRtJ
=FdeD
-----END PGP SIGNATURE-----


-- 
Sent via pgsql-performance mailing list (pgsql-performance@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance




[Postgresql General]     [Postgresql PHP]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Yosemite]

  Powered by Linux