This is how I am accessing variable in PostgreSQL.
select CURRENT_SETTING('abc.var1')
Is there an optimal way so that I can get default value i.e. 0 in case variable doesn't exist, instead of receiving an error ?
This is how I am accessing variable in PostgreSQL.
select CURRENT_SETTING('abc.var1')
Is there an optimal way so that I can get default value i.e. 0 in case variable doesn't exist, instead of receiving an error ?