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 fB5LXDm05276 for ; Wed, 5 Dec 2001 16:33:13 -0500 (EST) (envelope-from janwieck@yahoo.com) Received: from psc.progress.com (HELO saturn.jw.home) (192.233.92.200) by smtp.mail.vip.sc5.yahoo.com with SMTP; 5 Dec 2001 21:33:13 -0000 Received: (from wieck@localhost) by saturn.jw.home (8.11.2/8.11.2) id fB5LT4k02023; Wed, 5 Dec 2001 16:29:04 -0500 From: Jan Wieck Message-Id: <200112052129.fB5LT4k02023@saturn.jw.home> Subject: Re: PL/pgSQL examples NOT involving functions In-Reply-To: from Josh Berkus at "Nov 27, 2001 04:01:36 pm" To: Josh Berkus Date: Wed, 5 Dec 2001 16:29:04 -0500 (EST) CC: Aasmund Midttun Godal , pgsql-sql@postgresql.org X-Mailer: ELM [version 2.4ME+ PL68 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Archive-Number: 200112/60 X-Sequence-Number: 5883 Josh Berkus wrote: > Aasmund, > > > envisity=# DROP TABLE temp ; > > DROP > > envisity=# create table temp (tempid integer); > > CREATE > > envisity=# INSERT INTO temp VALUES(3); > > INSERT 150371 1 > > envisity=# select test3(); > > ERROR: Relation 150348 does not exist > > envisity=# > > That's a new one on me. I've dropped and re-created dozens of tables, > and while I have to re-build the views, I've never had to touch the > functions for that reason. Either in PL/pgSQL or in SQL. > > What version are we talking about? Any version. But a simple reconnect to the database fixes the problem, because you'll have a new backend and that guy will of course compile everything on first hit. Jan -- #======================================================================# # It's easier to get forgiveness for being wrong than for being right. # # Let's break this rule - forgive me. # #================================================== JanWieck@Yahoo.com # _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com