Re: creating/accessing new runtime parameters

Поиск
Список
Период
Сортировка
От
Тема Re: creating/accessing new runtime parameters
Дата
Msg-id 16241.63561.948485.575270@viola.nmsu.edu
обсуждение исходный текст
Ответ на Re: creating/accessing new runtime parameters  (Joe Conway <mail@joeconway.com>)
Ответы Re: creating/accessing new runtime parameters  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
Joe Conway writes:> I had a patch about 80% complete to do this, but it was rejected. The > comment was that I should
usea temp table instead. I still think it > would be useful myself. See this thread:> >
http://archives.postgresql.org/pgsql-hackers/2002-12/msg00988.php

I'm sorry that was rejected.  I can see that there might be error
checking issues, but perhaps that simply means some hooks to register
validation functions dynamically that could be called during SET.

As far as the general utility of it goes, I claim that it could be
quite valuable.  I am thinking of complex new datatypes (that might be
dynamically loaded) that could benefit from having some run-time
variables specify some aspect of their behavior.  Currently, we have
variables controlling the I/O of dates and times, for example.
Something analogous would potentially be useful for other datatypes.
Without the ability to dynamically add to the set of run-time
variables, it is impossible to write a datatype that has this
property.

In these cases, one really does want run-time variables, not temporary
tables, as the use exactly corresponds to the use for existing
variables:  modifying the behavior of interal functions.

Cheers,
Brook


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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re:
Следующее
От: Doug Royer
Дата:
Сообщение: Re: Announcement: planned open source billing system demonstration