12.4. Information functions

The following functions provide information about a BDR node:

Table 12-4. Node information functions

UDR/BDRFunctionReturn TypeDescription
BDR/UDR bdr.bdr_variant() textReturns the text BDR if run on a node with the full BDR extension installed, or UDR if the node has only UDR capabilities.
BDR/UDR bdr.bdr_version() textReport the BDR/UDR version in human-readable major.minor.rev-yyyy-mm-dd-gitrev text form, with build date and git revision, e.g. 0.9.0-2015-02-08-3f3fb7c.
BDR/UDR bdr.bdr_version_num() integerReport just the BDR/UDR version number in numeric AAAABBCC form, (A: major, B: minor, C: rev) e.g. 0.9.0 is 900 (00000900).
BDR/UDR bdr.min_remote_version_num() integerReturn the oldest version of the BDR/UDR extension that this node can compatibly receive streamed changes from.
BDR/UDR bdr.bdr_get_local_node_name() textLook up the local node in bdr.bdr_nodes and return the node name - or null if the node is not a BDR/UDR peer
BDR/UDR bdr.bdr_get_remote_nodeinfo(peer_dsn) recordConnect to a remote node and interrogate it for BDR information. This function is primarily for BDR internal use during setup and connection establishment.
BDR/UDR bdr.bdr_test_remote_connectback(peer_dsn, local_dsn) recordAsk a remote node to connect back to this node. This function is primarily for BDR internal use during setup and connection establishment.