X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 6BAA65331B for ; Thu, 7 Apr 2005 13:44:03 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 57314-07 for ; Thu, 7 Apr 2005 12:43:53 +0000 (GMT) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by svr1.postgresql.org (Postfix) with ESMTP id A99E252A7A for ; Thu, 7 Apr 2005 13:43:53 +0100 (BST) Received: from root by ciao.gmane.org with local (Exim 4.43) id 1DJWJ6-00016Q-5G for pgsql-sql@postgresql.org; Thu, 07 Apr 2005 14:40:24 +0200 Received: from srv.protecting.net ([212.126.218.242]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 07 Apr 2005 14:40:24 +0200 Received: from hf1122x by srv.protecting.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 07 Apr 2005 14:40:24 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-sql@postgresql.org From: Harald Fuchs Subject: Re: DROP TYPE without error? Date: 07 Apr 2005 14:37:45 +0200 Organization: Linux Private Site Lines: 17 Message-ID: References: <6C0CF58A187DA5479245E0830AF84F4208057C@poweredge.attiksystem.ch> <1112817807.4254408fecadc@webmail.telus.net> Reply-To: hf1122x@protecting.net Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: srv.protecting.net User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.011 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200504/78 X-Sequence-Number: 20971 In article <1112817807.4254408fecadc@webmail.telus.net>, Mischa 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.