postgrespro/pg_variables

pgv_exists(package text)

Closed this issue · 2 comments

Subj wanted, please.
usecase:
select pgv_insert('p1', 't1', t)
from test_table t
where ...;
select pgv_insert('p1', 't2', t) ...;
select pgv_insert('p1', 't3', t) ...;

Do we have package p1 now?
In case of big number of packages pgv_list() could be inefficient (or there is no difference with possible pgv_exists(package text)?).
There shoud be pgv_exists(package text) for the sake of pgv_remove(package text).
Thanks.

Hello,

It seems that it is sensible. I will introduce it soon.

Thank you for the issue!
I've added the function. Check please.