Re: pl/pgsql faster than raw SQL? - Mailing list pgsql-performance

From Gaetano Mendola
Subject Re: pl/pgsql faster than raw SQL?
Date
Msg-id 422E4948.3090208@bigfoot.com
Whole thread Raw
In response to pl/pgsql faster than raw SQL?  (Markus Bertheau ☭ <twanger@bluetwanger.de>)
Responses Re: pl/pgsql faster than raw SQL?  (John A Meinel <john@arbash-meinel.com>)
List pgsql-performance
Markus Bertheau ☭ wrote:
> Hi, I have the following strange situation:

that is no so strange. I have an example where:

SELECT * FROM my_view WHERE field1 = 'New'; ==> 800 seconds

SELECT * FROM my_view;  ==> 2 seconds

the only solution I had was to write a function table with
the second select in a loop that was returnin the row if
the field1 was equal = 'New'.
It's strange but happen.



Regards
Gaetano Mendola









pgsql-performance by date:

Previous
From: Gaetano Mendola
Date:
Subject: Re: bad plan
Next
From: Gaetano Mendola
Date:
Subject: vacuum full, why multiple times ?