From: | "Hiroshi Inoue" <Inoue(at)tpf(dot)co(dot)jp> |
---|---|
To: | "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "Andreas Tille" <tillea(at)rki(dot)de> |
Cc: | "PostgreSQL SQL" <pgsql-sql(at)hub(dot)org> |
Subject: | RE: Create table in functions |
Date: | 2000-08-24 00:57:06 |
Message-ID: | 000201c00d66$3953ea80$2801007e@tpf.co.jp |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
> -----Original Message-----
> From: Tom Lane
>
> Andreas Tille <tillea(at)rki(dot)de> writes:
> > web=# create function pHelpTable( )
> > web-# returns int
> > web-# As '
> > web'# Begin
> > web'# Create Table Temp_NumTable ( Num int ) ;
> > web'#
> > web'# return 17 ;
> > web'# End; '
> > web-# language 'plpgsql' ;
> > CREATE
>
> The majority of utility commands don't work in plpgsql functions,
> because no one had gotten 'round to writing querytree copy routines
> for them. Ian Turner finally did all the gruntwork for that a few
> weeks ago, so this does work in current sources and will be in 7.1.
>
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.
Regards.
Hiroshi Inoue
Inoue(at)tpf(dot)co(dot)jp
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2000-08-24 05:32:45 | Re: Create table in functions |
Previous Message | drfrog | 2000-08-23 16:53:56 | db benchmarks |