Re: default_language

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Re: default_language
Дата
Msg-id 1264385614.13571.14.camel@ebony
обсуждение исходный текст
Ответ на Re: default_language  (Greg Stark <gsstark@mit.edu>)
Список pgsql-hackers
On Sun, 2010-01-24 at 23:59 +0000, Greg Stark wrote:
> 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.

So you want your database to work declaratively, but the code that runs
against it doesn't need to be. Why would that be? What advantage is
gained from having DO blocks potentially fail sometime in the future?
Whatever that advantage is, why should functions not also be able to
take advantage of that same benefit?

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

-- Simon Riggs           www.2ndQuadrant.com



В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Kevin Grittner"
Дата:
Сообщение: Re: commit fests
Следующее
От: Takahiro Itagaki
Дата:
Сообщение: Syntax supplements for SET options