Defining global constants in Postgresql stored function/procedures? -


i have set of functions have created in postgresql. able configure behavior , limits global constants.

so far, have implemented functions these, functions call retrieve constant value:

create or replace function slice_length() returns integer $$ begin     return 50; end; $$ language plpgsql immutable; 

i wondering, there better/smarter way achieve this?

take @ other answer. uses same approach do.

create constant string entire database


Comments

Popular posts from this blog

css - I want to align grid in center -

Contact Form PHP Email Script -

python - SWIG function not printing output -