Slony-I 2.1.4 Documentation | ||||
---|---|---|---|---|
Prev | Fast Backward | Chapter 8. Schema schemadoc | Fast Forward | Next |
8.98. registry_set_int4(p_value text, p_key integer)
Function Properties
Language: PLPGSQL
Return Type: integer
registry_set_int4(key, value) Set or delete a registry valueBEGIN if p_value is null then delete from sl_registry where reg_key = p_key; else lock table sl_registry; update sl_registry set reg_int4 = p_value where reg_key = p_key; if not found then insert into sl_registry (reg_key, reg_int4) values (p_key, p_value); end if; end if; return p_value; END;