pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Harald Fuchs <use_reply_to@protecting.net>
To: pgsql-sql@postgresql.org
Subject: Re: DROP TYPE without error?
Date: 07 Apr 2005 14:37:45 +0200
Message-ID: <pusm22g3ty.fsf@srv.protecting.net> (raw)
References: <6C0CF58A187DA5479245E0830AF84F4208057C@poweredge.attiksystem.ch>
	<1112817807.4254408fecadc@webmail.telus.net>

In article <1112817807.4254408fecadc@webmail.telus.net>,
Mischa <mischa.Sandberg@telus.net> writes:

> I've got a similar request for other objects that do/do not exist.
> Maybe it's just that I got lazy using MSSQL, but it sure was convenient
> to have:

>    IF object_id('WorkTable') IS NULL
>        CREATE TABLE WorkTable(...
> etc.

I got lazy using MySQL, where it was convenient to have
  CREATE TABLE IF NOT EXISTS tbl (...)
and
  DROP TABLE IF EXISTS tbl

This is the only feature of MySQL I really miss.




view thread (5+ messages)  latest in thread

Message-ID: <pusm22g3ty.fsf@srv.protecting.net>
Permalink:  ../pusm22g3ty.fsf@srv.protecting.net/
Also on:    postgresql.org/message-id/pusm22g3ty.fsf@srv.protecting.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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: use_reply_to@protecting.net
  Subject: Re: DROP TYPE without error?
  In-Reply-To: <pusm22g3ty.fsf@srv.protecting.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