Received: from smtp016.mail.yahoo.com (smtp016.mail.yahoo.com [216.136.174.113]) by postgresql.org (8.11.3/8.11.4) with SMTP id f84Kuf703359 for ; Tue, 4 Sep 2001 16:56:41 -0400 (EDT) (envelope-from chrup999@yahoo.com) Received: from proxy.compucom.com (HELO Z161842) (204.214.145.2) by smtp.mail.vip.sc5.yahoo.com with SMTP; 4 Sep 2001 20:56:39 -0000 X-Apparently-From: Message-ID: <002c01c13584$1654dca0$5dd26383@corp.compucom.com> From: "Chris Ruprecht" To: "pgadmin" Subject: updating a function Date: Tue, 4 Sep 2001 15:56:36 -0500 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0029_01C1355A.2D44D8E0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Archive-Number: 200109/7 X-Sequence-Number: 2107 This is a multi-part message in MIME format. ------=_NextPart_000_0029_01C1355A.2D44D8E0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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 th= e code in one terminal window and I had another terminal window open, runni= ng 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 func= tion (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 pa= rameter to switch on or off to prevent this behavior? Best regards, Chris =20 ------=_NextPart_000_0029_01C1355A.2D44D8E0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi all,
 
not sure, if this belongs into this list o= r in the=20 SQL list, but, here goes:
 
I changed a function (some business rules = changed).=20 I did the writing of the code in one terminal window and I had another= =20 terminal window open, running in psql.
after I saved the file to disk (vi :w comm= and :), I=20 did an \i function-name.sql in the psql window.
It did the DROP/CREATE thing just as expec= ted, but=20 when I then ran the function (select function-name();), it was still runnin= g the=20 OLD version.
After I did a \q and back into psql cycle = and=20 re-ran the function, it used the new version.
 
It seems to have something to do with cach= ing. Can=20 anybody tell me which parameter to switch on or off to prevent this=20 behavior?
 
Best regards,
Chris
 
------=_NextPart_000_0029_01C1355A.2D44D8E0-- _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com