Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql General > storing long li...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 15470 of 15987
Post > Topic >>

storing long live parameters

by mail@[EMAIL PROTECTED] (Ivan Sergio Borgonovo) May 6, 2008 at 03:07 PM

I've some nearly static tables that store id that comes handy as
"constant".
I'd like to keep maintenance as low as possible and still avoid to
execute selects looking for the current value of a certain ID.

eg. I may have stages of a process stored in a table, that table is
not going to change often but still it may change.
I'd like to use the id of the last stage across functions without
calling

select into maxid max(id) from stages;

and still have a standard procedure that will update all such
"constants".

One awkward way could be to define functions as immutable even if
they are not and refresh their values cycles of "create or
replace"... if they actually get refreshed... but I'd like to see if
there are other options.

thanks

-- 
Ivan Sergio Borgonovo
http://www.webthatworks.it


-- 
Sent via pgsql-general mailing list (pgsql-general@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
 




 1 Posts in Topic:
storing long live parameters
mail@[EMAIL PROTECTED] (  2008-05-06 15:07:11 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan13V112 Sun Jul 6 17:50:54 CDT 2008.