Re: problem with custom_variable_classes

Поиск
Список
Период
Сортировка
От hubert depesz lubaczewski
Тема Re: problem with custom_variable_classes
Дата
Msg-id 20080925053539.GB9782@depesz.com
обсуждение исходный текст
Ответ на Re: problem with custom_variable_classes  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
On Wed, Sep 24, 2008 at 07:33:27PM -0400, Tom Lane wrote:
> It will accept *definitions*, yes.  I can't imagine why you'd think
> it's a good idea to not throw error when asked for an unknown variable's
> value.

because this is how it worked.
i'm not saying it was good. it worked that way, and introducing such
change made some code (rownum in this example) not working.

i understand that postgresql is more about correctness than end-user
niceness, which has some obvious benefits, but i think - in such cases
at least a one-line information in release docs wouldn't be out of
place.

> The whole custom-variable thing is being abused far beyond what the
> facility was intended for, anyway.

i think it's great idea. somebody thought about cool thing for modules,
other people found other uses for it.
right now they are being effectively punished for
creativeness (unfortunatelly i can't say it is me, as i got the variable
trick from somebody else).

best regards,

depesz


--
Linkedin: http://www.linkedin.com/in/depesz  /  blog: http://www.depesz.com/
jid/gtalk: depesz@depesz.com / aim:depeszhdl / skype:depesz_hdl / gg:6749007

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

Предыдущее
От: Guy Rouillier
Дата:
Сообщение: Re: case expression
Следующее
От: Casey Allen Shobe
Дата:
Сообщение: Re: Oracle and Postgresql