Internal system functions v5
The following are internal system functions. Many are used when creating various views. We recommend that you do not use the functions directly but instead use the views that they serve.
General internal functions
bdr.bdr_get_commit_decisions
Convenience routine to inspect shared memory state.
Synopsis
bdr.bdr_track_commit_decision
Save the transaction commit status in the shared memory hash table. This dunction is used by the upgrade scripts to transfer commit decisions saved in bdr.node_pre_commit catalog to the shared memory hash table. The transaction commit status will also be logged to the WAL and hence can be reloaded from WAL.
Synopsis
bdr.consensus_kv_fetch
Fetch value from the consistent KV Store in JSON format.
Synopsis
Parameters
key
— An arbitrary key to fetch.
Notes
This function is an internal function, mainly used by HARP.
Warning
Don't use this function in user applications.
bdr.consensus_kv_store
Stores value in the consistent KV Store.
Returns the timestamp of the value expiration time. This function depends on ttl
. If ttl
is NULL
, then this function returns infinity
. If the value was deleted, it
returns -infinity
.
Synopsis
Parameters
key
— An arbitrary unique key to insert, update, or delete.value
— JSON value to store. If NULL, any existing record is deleted.prev_value