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.
Comments
Post a Comment