Re: create language ... if not exists

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Heikki Linnakangas <heikki(at)enterprisedb(dot)com>, "Andreas 'ads' Scherbaum" <adsmail(at)wars-nicht(dot)de>, pgsql-patches(at)postgresql(dot)org
Subject: Re: create language ... if not exists
Date: 2008-03-29 21:45:11
Message-ID: 20080329224511.33b743c2@mha-laptop
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Tom Lane wrote:
> Magnus Hagander <magnus(at)hagander(dot)net> writes:
> > If we're implementing IF NOT EXISTS across the board, let's do that
> > for languages at the same time as for others.
>
> Yeah, if we were going to do it at all it should be handled
> across-the-board, the way DROP IF EXISTS was. However, I seem to
> recall that in the discussions leading up to implementing DROP IF
> EXISTS, we considered and specifically rejected CREATE IF NOT
> EXISTS. Don't have time right now to troll the archives for the
> reasoning.

Right. Which is one of the reasons why I'm suggesting we stick with the
CREATE OR REPLACE for now.

//Magnus

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Brendan Jurd 2008-03-29 23:39:35 printTable API (was: Show INHERIT in \du)
Previous Message Tom Lane 2008-03-29 21:39:57 Re: create language ... if not exists