Using CRDTs v5.6
Using CRDTs in tables
Permissions required
PGD CRDTs requires usage access to CRDT types. Therefore, any user needing to access CRDT types must have at least the bdr_application role assigned to them.
To use CRDTs, you need to use a particular data type in CREATE/ALTER TABLE rather than standard built-in data types such as integer
. For example, consider the following table with one regular integer counter and a single row:
Non-CRDT example
Suppose you issue the following SQL on two different nodes at same time:
After both updates are applied, you can see the resulting values using this query: