The trouble with dynamic plpgsql functions

From: Динар <dinar(at)yantel(dot)ru>
To: pgsql-general(at)postgresql(dot)org
Subject: The trouble with dynamic plpgsql functions
Date: 2002-05-31 09:54:36
Message-ID: 7620362820.20020531135436@yantel.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello all!!!
Is it bug or it is should be so???

I made a dynamic function on plpgsql which calculates the time period
in seconds for a given item. The calculation begins from now untill
the time that is given in field. For the first time everything
calculates ok, but the second query obtains the same result.

For example I have to calculate time period in seconds from now to
20:00.
now 10:00. I run query and obtain 36000 seconds.

after 1 minute I run query and also obtain the same result.

I checked it twice the function is not cachable.

What is wrong here???

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Nigel J. Andrews 2002-05-31 10:33:16 Re: PostgreSQL search engine (Perl)
Previous Message Curt Sampson 2002-05-31 09:44:22 Re: Non-linear Performance