Re: default_language - Mailing list pgsql-hackers

From Greg Stark
Subject Re: default_language
Date
Msg-id 407d949e1001241559s24ebe5bdu8dfca5a2afec9927@mail.gmail.com
Whole thread Raw
In response to Re: default_language  (Simon Riggs <simon@2ndQuadrant.com>)
Responses Re: default_language  (Andrew Dunstan <andrew@dunslane.net>)
Re: default_language  (Simon Riggs <simon@2ndQuadrant.com>)
List pgsql-hackers
On Sun, Jan 24, 2010 at 11:18 PM, Simon Riggs <simon@2ndquadrant.com> wrote:
> I would prefer having the option, but removing it completely does at
> least solve the bizarre inconsistency I've highlighted.
>

I don't see it as much of an inconsistency. The whole point of DO is
to be convenient, whereas CREATE FUNCTION is DDL for defining what
your database looks like and it should be well defined in perpetuity.

However it's also possible will write DO blocks into their application
code in which case it might be preferable not to have a
default_language GUC which would have to be set correctly for the code
to work.

-- 
greg


pgsql-hackers by date:

Previous
From: KaiGai Kohei
Date:
Subject: Re: [BUG?] strange behavior in ALTER TABLE ... RENAME TO on inherited columns
Next
From: Andrew Dunstan
Date:
Subject: Re: default_language