Re: creating/accessing new runtime parameters - Mailing list pgsql-hackers

From
Subject Re: creating/accessing new runtime parameters
Date
Msg-id 16241.63561.948485.575270@viola.nmsu.edu
Whole thread Raw
In response to Re: creating/accessing new runtime parameters  (Joe Conway <mail@joeconway.com>)
Responses Re: creating/accessing new runtime parameters  (Peter Eisentraut <peter_e@gmx.net>)
List 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 by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re:
Next
From: Doug Royer
Date:
Subject: Re: Announcement: planned open source billing system demonstration