Skip to main content
Microsoft
separator
https://catalogartifact.azureedge.net/publicartifacts/cloudimg1647283583153.doltgres-ubuntu-24-04-d4f19a16-1152-4647-9d25-fe495d0b2207/image8_logolarge.png

DoltgreSQL 1.3 Version Controlled Database on Ubuntu 24.04 LTS

by cloudimg

A PostgreSQL compatible database that branches, diffs and merges your data like code.

Version control, for the rows and not just the schema

Most ways of answering what changed in this table are indirect. Point in time recovery restores a whole database to a moment. Audit tables record that a row changed but not how two versions of a dataset differ. A nightly dump is a file, not a history you can branch from. DoltgreSQL takes the other approach and stores its tables in a Dolt repository, so the contents of the database are versioned the way version control versions source code.

You commit a set of rows and get a commit hash. You branch the database, make changes on the branch, and the trunk is untouched. You ask for a row level diff between two branches or two commits and get back which rows were added, removed or edited. You merge the branch. You read any table as it stood at an earlier commit. There is no separate command line tool to learn: every one of those operations is a SQL function or a system table.

It speaks PostgreSQL, so your existing clients connect

DoltgreSQL implements the PostgreSQL wire protocol. The stock psql client ships on this image and is what the deployment guide drives the whole workflow with, and standard PostgreSQL drivers connect unchanged. Branch selection is the one piece of syntax with no PostgreSQL equivalent: you put the branch in the database name, as database slash branch.

What is not supported, stated plainly

DoltgreSQL targets the PostgreSQL 15 dialect and is a young project. It is genuinely compatible across a large and useful subset of SQL, and it is not a drop in replacement for PostgreSQL. Check your workload before migrating. Absent in this version: the geometric, network, range and full text search types; full text search entirely; foreign data wrappers entirely; MERGE, SELECT INTO, anonymous DO blocks, SQL level cursors, LISTEN and NOTIFY, two phase commit, row level security policies, rules, and materialized views. Indexes are btree only, partitions are parsed but ignored, locking clauses are not supported, COPY TO is not supported, and VACUUM is a no operation. Only the uuid-ossp and vector extensions are available, so there is no PostGIS. It cannot act as a replication primary for a PostgreSQL database. The deployment guide carries this same list.

Nothing shared between machines

DoltgreSQL can only be given its superuser password at the moment its data directory is first created, and its documented default is the password literal. An image that shipped a ready made database would therefore ship one known credential to every customer. This image contains no database at all. Each virtual machine creates its own data directory on first boot with its own generated password, handed to the server on standard input so it never reaches a command line, the process table or the system journal, and written only to a file that only root can read. First boot then verifies that the published default really is refused before it completes, and the database service cannot start until that has happened. Two machines launched from this image were compared field by field: the password, the credentials file, the database commit identity, both host keys and the machine identifier all differed, and a password taken from one machine was refused by the other.

The database is bound to the loopback interface, so port 22 is the only listener reachable from the network, and the guide documents an SSH tunnel as the supported way to reach it from a workstation. Ubuntu 24.04 LTS is fully patched at build time with unattended security upgrades armed.

DoltgreSQL is distributed under the Apache License 2.0. DoltgreSQL is an independent project of DoltHub and PostgreSQL is an independent project; cloudimg is not affiliated with or endorsed by either.

At a glance

https://catalogartifact.azureedge.net/publicartifacts/cloudimg1647283583153.doltgres-ubuntu-24-04-d4f19a16-1152-4647-9d25-fe495d0b2207/image7_screenshot01.png
https://catalogartifact.azureedge.net/publicartifacts/cloudimg1647283583153.doltgres-ubuntu-24-04-d4f19a16-1152-4647-9d25-fe495d0b2207/image1_screenshot02.png
https://catalogartifact.azureedge.net/publicartifacts/cloudimg1647283583153.doltgres-ubuntu-24-04-d4f19a16-1152-4647-9d25-fe495d0b2207/image5_screenshot03.png
https://catalogartifact.azureedge.net/publicartifacts/cloudimg1647283583153.doltgres-ubuntu-24-04-d4f19a16-1152-4647-9d25-fe495d0b2207/image2_screenshot04.png
English (United States)
Your Privacy Choices Opt-Out Icon Your Privacy Choices
Consumer Health Privacy Sitemap Contact Us Privacy & Cookies Terms of Use About our ads Manage cookies