Re: pl/pgsql faster than raw SQL?

From: Gaetano Mendola <mendola(at)bigfoot(dot)com>
To: Markus Bertheau ☭ <twanger(at)bluetwanger(dot)de>
Subject: Re: pl/pgsql faster than raw SQL?
Date: 2005-03-09 00:54:32
Message-ID: 422E4948.3090208@bigfoot.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Gaetano Mendola 2005-03-09 01:02:13 vacuum full, why multiple times ?
Previous Message Gaetano Mendola 2005-03-09 00:47:28 Re: bad plan