Re: default_language

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: default_language
Дата
Msg-id 4B5CE219.90604@dunslane.net
обсуждение исходный текст
Ответ на Re: default_language  (Greg Stark <gsstark@mit.edu>)
Список pgsql-hackers

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

Yeah, it's the possibility of scripts or functions with embedded DO 
statements that makes me think we'd be better off without a setting for 
this.

cheers

andrew


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

Предыдущее
От: Greg Stark
Дата:
Сообщение: Re: default_language
Следующее
От: Baron Schwartz
Дата:
Сообщение: Re: MySQL-ism help patch for psql