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

create language ... if not exists

From: Andreas 'ads' Scherbaum <adsmail(at)wars-nicht(dot)de>
To: pgsql-patches(at)postgresql(dot)org
Subject: create language ... if not exists
Date: 2008-03-29 01:40:57
Message-ID: 20080329024057.38664714@iridium.wars-nicht.de (view raw or flat)
Thread:
Lists: pgsql-patches
Hello all,

yesterday i ran into a small problem:
http://andreas.scherbaum.la/blog/archives/346-create-language-if-not-exist.html
and was bugged to create a patch for PostgreSQL. So here is a first
version, still missing some things like documentation.

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).


Thank you

-- 
				Andreas 'ads' Scherbaum
German PostgreSQL User Group

Attachment: pgsql-create-language-if-not-exists.patch
Description: text/x-patch (5.9 KB)

Responses

pgsql-patches by date

Next:From: Dean RasheedDate: 2008-03-29 08:47:51
Subject: Re: Auto-explain patch
Previous:From: Bruce MomjianDate: 2008-03-28 20:26:42
Subject: Re: [PATCHES] Implemented current_query

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