BUG #2150: PL/Python function delcared STABLE gets run repeatedly

From: "Aaron Swartz" <me(at)aaronsw(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #2150: PL/Python function delcared STABLE gets run repeatedly
Date: 2006-01-05 18:26:27
Message-ID: 20060105182627.E0321F0A32@svr2.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


The following bug has been logged online:

Bug reference: 2150
Logged by: Aaron Swartz
Email address: me(at)aaronsw(dot)com
PostgreSQL version: 8.1.1
Operating system: Mac OS X
Description: PL/Python function delcared STABLE gets run repeatedly
Details:

We have the PL/Python function get_foo(n) that returns an array. If this
function is declared IMMUTABLE, then:

SELECT * FROM tablenamehere WHERE id = any(get_foo(21));

returns quickly. If the function is declared STABLE, however, PostgreSQL
seems to incorrectly run it for every row in the table and it takes forever.

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Kerim Simsek 2006-01-05 18:44:44 BUG #2151: ODBC, Large Object, Visual Basic, GetChunk
Previous Message Abigail Corrigan 2006-01-05 18:03:11 BUG #2149: can not enter M into a varchar field in version 8.1.1