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

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -