From: Chris Ruprecht <chrup999@yahoo.com>
To: pgadmin <pgsql-admin@postgresql.org>
Subject: updating a function
Date: Tue, 4 Sep 2001 15:56:36 -0500
Message-ID: <002c01c13584$1654dca0$5dd26383@corp.compucom.com> (raw)
Hi all,
not sure, if this belongs into this list or in the SQL list, but, here goes:
I changed a function (some business rules changed). I did the writing of the code in one terminal window and I had another terminal window open, running in psql.
after I saved the file to disk (vi :w command :), I did an \i function-name.sql in the psql window.
It did the DROP/CREATE thing just as expected, but when I then ran the function (select function-name();), it was still running the OLD version.
After I did a \q and back into psql cycle and re-ran the function, it used the new version.
It seems to have something to do with caching. Can anybody tell me which parameter to switch on or off to prevent this behavior?
Best regards,
Chris
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: chrup999@yahoo.com
Subject: Re: updating a function
In-Reply-To: <002c01c13584$1654dca0$5dd26383@corp.compucom.com>
References: <002c01c13584$1654dca0$5dd26383@corp.compucom.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