From: Gaetano Mendola <mendola@bigfoot.com>
To: Markus Bertheau ☭ <twanger@bluetwanger.de>
Subject: Re: pl/pgsql faster than raw SQL?
Date: Wed, 09 Mar 2005 01:54:32 +0100
Message-ID: <422E4948.3090208@bigfoot.com> (raw)
In-Reply-To: <1110284432.4905.18.camel@dicaprio.akademie1.de>
References: <1110284432.4905.18.camel@dicaprio.akademie1.de>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: mendola@bigfoot.com, twanger@bluetwanger.de
Subject: Re: pl/pgsql faster than raw SQL?
In-Reply-To: <422E4948.3090208@bigfoot.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox