Re: [PERFORM] Seqscan slowness and stored procedures

2012-06-08 Thread Ivan Voras
On 8 June 2012 11:58, Albe Laurenz wrote: > Did you take caching of table data in the buffer cache or the filesystem > cache into account?  Did you run your tests several times in a row and > were the actual execution times consistent? Yes, and yes. >> Would tweaking enable_seqscan and other pl

Re: [PERFORM] Seqscan slowness and stored procedures

2012-06-08 Thread Albe Laurenz
Ivan Voras wrote: > I have a SQL function (which I've pasted below) and while testing its > code directly (outside a function), this is the "normal", default plan: > > http://explain.depesz.com/s/vfP (67 ms) > > and this is the plain with enable_seqscan turned off: > > http://explain.depesz.com/

Re: [PERFORM] Seqscan slowness and stored procedures

2012-05-27 Thread Pavel Stehule
2012/5/27 Ivan Voras : > On 27 May 2012 05:28, Pavel Stehule wrote: >> Hello >> >> 2012/5/26 Ivan Voras : >>> Hello, >>> >>> I have a SQL function (which I've pasted below) and while testing its >>> code directly (outside a function), this is the "normal", default plan: >>> >>> http://explain.depe

Re: [PERFORM] Seqscan slowness and stored procedures

2012-05-27 Thread Ivan Voras
On 27 May 2012 05:28, Pavel Stehule wrote: > Hello > > 2012/5/26 Ivan Voras : >> Hello, >> >> I have a SQL function (which I've pasted below) and while testing its >> code directly (outside a function), this is the "normal", default plan: >> >> http://explain.depesz.com/s/vfP (67 ms) >> >> and thi

Re: [PERFORM] Seqscan slowness and stored procedures

2012-05-26 Thread Pavel Stehule
Hello 2012/5/26 Ivan Voras : > Hello, > > I have a SQL function (which I've pasted below) and while testing its > code directly (outside a function), this is the "normal", default plan: > > http://explain.depesz.com/s/vfP (67 ms) > > and this is the plain with enable_seqscan turned off: > > http:/