From: | jwieck(at)debis(dot)com (Jan Wieck) |
---|---|
To: | pawel(at)astercity(dot)net |
Cc: | pgsql-sql(at)postgreSQL(dot)org |
Subject: | Re: [SQL] drop table in pgsql |
Date: | 1999-01-06 10:19:38 |
Message-ID: | m0zxq3u-000EBRC@orion.SAPserv.Hamburg.dsh.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-sql |
>
> Hi,
>
> How do I drop a table under plpgsql ?
> When I invoke a function which contains eg: DROP TABLE TMP a get a
> backend crash no matter if this table exists or not.
>
> I can always do it the hard way and put DROP ... in an SQL function
> and then invoke DROP indirectly but do I have to ?
>
> Please help me
> Pawel Pierscionek
Huh - intersting. Not that I think it's good to change the
database schema from inside of functions, but if SQL
functions can do it, PL/pgSQL should too. Will take a look at
it.
Jan
--
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#======================================== jwieck(at)debis(dot)com (Jan Wieck) #
From | Date | Subject | |
---|---|---|---|
Next Message | Thomas G. Lockhart | 1999-01-06 14:35:02 | Re: [DOCS] Postgresql INSTALL-file & Windows |
Previous Message | Jan Wieck | 1999-01-06 10:03:33 | Re: [HACKERS] Re: [GENERAL] Views |
From | Date | Subject | |
---|---|---|---|
Next Message | Tim Perdue | 1999-01-06 12:23:49 | Importing Fixed-Width File? |
Previous Message | Pawel Pierscionek | 1999-01-06 09:50:09 | plpgsql problems |