pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephan Szabo <sszabo@megazone23.bigpanda.com>
To: Josh Berkus <josh@agliodbs.com>
Cc: Aasmund Midttun Godal <postgresql@envisity.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: PL/pgSQL examples NOT involving functions
Date: Tue, 27 Nov 2001 16:32:03 -0800 (PST)
Message-ID: <20011127162754.I23668-100000@megazone23.bigpanda.com> (raw)
In-Reply-To: <web-514787@davinci.ethosmedia.com>


On Tue, 27 Nov 2001, 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?

7.2b3 :)

One thing that should be noted here is that after reconnecting you should
get the 3 back out. IIRC parse tree stuff is done first time its called
through a connection.  So, if you're dropping and doing stuff via like
editing files and psqling them and then starting a psql and trying your
function you won't see it happen.






view thread (23+ messages)  latest in thread

Message-ID: <20011127162754.I23668-100000@megazone23.bigpanda.com>
Permalink:  ../20011127162754.I23668-100000@megazone23.bigpanda.com/
Also on:    postgresql.org/message-id/20011127162754.I23668-100000@megazone23.bigpanda.com

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: sszabo@megazone23.bigpanda.com, josh@agliodbs.com, postgresql@envisity.com
  Subject: Re: PL/pgSQL examples NOT involving functions
  In-Reply-To: <20011127162754.I23668-100000@megazone23.bigpanda.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