From: jwieck@debis.com
To: pawel@astercity.net
Cc: pgsql-sql@postgreSQL.org
Subject: Re: [SQL] drop table in pgsql
Date: Wed, 6 Jan 1999 11:19:38 +0100 (MET)
Message-ID: <m0zxq3u-000EBRC@orion.SAPserv.Hamburg.dsh.de> (raw)
In-Reply-To: <15931.990105@astercity.net>
>
> 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@debis.com (Jan Wieck) #
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: jwieck@debis.com, pawel@astercity.net
Subject: Re: [SQL] drop table in pgsql
In-Reply-To: <m0zxq3u-000EBRC@orion.SAPserv.Hamburg.dsh.de>
References: <15931.990105@astercity.net> <m0zxq3u-000EBRC@orion.SAPserv.Hamburg.dsh.de>
* 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