Skip site navigation (1) Skip section navigation (2)

Re: create language ... if not exists

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Heikki Linnakangas <heikki(at)enterprisedb(dot)com>
Cc: 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 13:09:00
Message-ID: 47EE3F6C.1080908@dunslane.net (view raw or flat)
Thread:
Lists: pgsql-patches

Heikki Linnakangas wrote:
> Andreas 'ads' Scherbaum wrote:
>> The attached patch for HEAD extends the CREATE LANGUAGE statement by an
>> IF NOT EXISTS option which in effect changes the raised error into a
>> notice.
>>
>> Before i continue working on this patch i would like to know if this
>> extension has a chance to go into PG and what other changes i should
>> apply (beside the missing documentation).
>
> The way we've solved this problem for other CREATE commands is to add 
> "OR REPLACE" option, instead of "IF NOT EXISTS". We should do the same 
> here.
>
>

My recollection is that we only do that where we need to for reasons of 
dependency. Not sure that applies here.

cheers

andrew

In response to

Responses

pgsql-patches by date

Next:From: Andrew DunstanDate: 2008-03-29 13:18:22
Subject: Re: [DOCS] pg_total_relation_size() and CHECKPOINT
Previous:From: tomasDate: 2008-03-29 12:25:21
Subject: Re: [PATCHES] Avahi support for Postgresql

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group