Re: Create table in functions

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Hiroshi Inoue" <Inoue(at)tpf(dot)co(dot)jp>
Cc: "Andreas Tille" <tillea(at)rki(dot)de>, "PostgreSQL SQL" <pgsql-sql(at)hub(dot)org>
Subject: Re: Create table in functions
Date: 2000-08-24 05:32:45
Message-ID: 25715.967095165@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

"Hiroshi Inoue" <Inoue(at)tpf(dot)co(dot)jp> writes:
> Hmm,Andreas's original function seems to contain other statements.
> If the function contains DML statements for the table Temp_Num_Table,
> it wouldn't work properly. i.e 1st call would work but 2nd call woudn't.

Are you thinking about plpgsql's caching of query plans (and
specifically the table OIDs stored in those plans) or is there another
issue here?

We do need to think about invalidating cached query plans when updates
happen...

regards, tom lane

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Hiroshi Inoue 2000-08-24 06:14:02 RE: Create table in functions
Previous Message Hiroshi Inoue 2000-08-24 00:57:06 RE: Create table in functions