pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Pawel Pierscionek <pawel@astercity.net>
To: Jan Wieck <jwieck@debis.com>
Cc: pgsql-sql@postgreSQL.org
Subject: Re: [SQL] drop table in pgsql
Date: Wed, 6 Jan 1999 15:43:55 +0100 (EET)
Message-ID: <Pine.LNX.4.05.9901061532250.10614-100000@astercity.net> (raw)
In-Reply-To: <m0zxq3u-000EBRC@orion.SAPserv.Hamburg.dsh.de>

On Wed, 6 Jan 1999, Jan Wieck wrote:

> >
> > 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.
> 
I don't like changing db shema that way too, but there is no support for
temporary tables and I have to use drop before I go with select sth into
temp_db. 

Pawel Pierscionek 




view thread (3+ messages)

Message-ID: <Pine.LNX.4.05.9901061532250.10614-100000@astercity.net>
Permalink:  ../Pine.LNX.4.05.9901061532250.10614-100000@astercity.net/
Also on:    postgresql.org/message-id/Pine.LNX.4.05.9901061532250.10614-100000@astercity.net

 · 

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 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: pawel@astercity.net, jwieck@debis.com
  Subject: Re: [SQL] drop table in pgsql
  In-Reply-To: <Pine.LNX.4.05.9901061532250.10614-100000@astercity.net>
  References: <m0zxq3u-000EBRC@orion.SAPserv.Hamburg.dsh.de> <Pine.LNX.4.05.9901061532250.10614-100000@astercity.net>

* 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