Before you begin
Make sure you have already:- Set up a local cluster.
- Installed a PostgreSQL client.
- Connected to the database.
- Inserted data that you now want to run queries against.
When running under the default
SERIALIZABLE isolation level, your application should use a retry loop to handle transaction retry errors that can occur under contention.Run a transaction
- SQL
- Go
- Java
- Python
cockroach sql reference docs.
