Snapshot của dolthub/doltgresql: 2.2k★ · Go · Data. DoltgreSQL - Version Controlled PostgreSQL
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
From the creators of Dolt, the world's first version controlled SQL
database, comes Doltgres, the Postgres-flavored version of Dolt. It's a
SQL database that you can branch and merge, fork and clone, push and pull just like a Git
repository. Connect to your Doltgres server just like any Postgres database to read or modify schema
and data. Version control functionality is exposed in SQL via system tables, functions, and
procedures.
Git versions file, Doltgres versions tables. It's like Git and Postgres had a baby.
Doltgres is 1.0
Doltgres is 1.0, which means
it's ready for your production use case.
The wait is over! Now is the time to try out Doltgres and let us know what you
think. Import your existing Postgres database into Doltgres with pg_dump and psql, and let us
know if anything doesn't work. We can fix
most bugs in 24 hours if you file
an issue.
Full Documentation
Doltgres has a documentation website with extensive documentation.
Installation
To install Doltgres on Linx or Mac based systems run this command in your terminal:
This will download the latest doltgres release and put it in /usr/local/bin/, which is probably on
your $PATH.
Windows
Download the latest Microsoft Installer (.msi file) in
releases and run it.
Docker
Doltgres publishes an official Docker image on every release:
dolthub/doltgresql
Run it on your local Docker like this:
$ docker run -e DOLTGRES_PASSWORD=myPassword -p 5432:5432 dolthub/doltgresql:latest
Building From Source
To produce a binary from source code, run ./scripts/build.sh.
Getting Started
Run doltgres. This will create a postgres user and a postgres database in the current
directory. The default password will be password, just like in Postgres. You can use a
config.yaml file or set the DOLTGRES_DATA_DIR environment variable to use a different directory
for your databases.
You can change the name and password of the super-user by setting the DOLTGRES_USER and
DOLTGRES_PASSWORD environment variables before running doltgres for the first time.
$ doltgres
INFO[0000] Server ready. Accepting connections.
Install Postgres to get the psql tool. I used Homebrew to install Postgres on my Mac. This
requires I manually add /opt/homebrew/opt/postgresql@15/bin to my path. We only need Postgres in
order to use psql, so feel free to skip this step if you already have psql, or if you have
another Postgres client you use instead.
Open a new terminal. Connect with the following command: PGPASSWORD=password psql -h localhost -U postgres. This will connect to the postgres database with the postgres user.
$ PGPASSWORD=password psql -h localhost
psql (15.4 (Homebrew), server 15.0)
Type "help" for help.
postgres=>
Create a getting_started database. Create the getting_started example tables.
postgres=> create database getting_started;
--
(0 rows)
postgres=> \c getting_started;
psql (15.4 (Homebrew), server 15.0)
You are now connected to database "getting_started" as user "postgres".
getting_started=> create table employees (
id int8,
last_name text,
first_name text,
primary key(id));
--
(0 rows)
getting_started=> create table teams (
id int8,
team_name text,
primary key(id));
--
(0 rows)
getting_started=> create table employees_teams(
team_id int8,
employee_id int8,
primary key(team_id, employee_id),
foreign key (team_id) references teams(id),
foreign key (employee_id) references employees(id));
--
(0 rows)
getting_started=> \d
List of relations
Schema | Name | Type | Owner
--------+-----------------+-------+----------
public | employees | table | postgres
public | employees_teams | table | postgres
public | teams | table | postgres
(3 rows)
Make a Dolt Commit.
getting_started=> select * from dolt.status;
table_name | staged | status
------------------------+--------+-----------
public.employees | f | new table
public.employees_teams | f | new table
public.teams | f | new table
(3 rows)
getting_started=> select dolt_add('teams', 'employees', 'employees_teams');
dolt_add
----------
0
(1 row)
getting_started=> select * from dolt.status;
table_name | staged | status
-----------------------+--------+-----------
public.employees | t | new table
public.employees_teams | t | new table
public.teams | t | new table
(3 rows)
getting_started=> select dolt_commit('-m', 'Created initial schema');
dolt_commit
----------------------------------
peqq98e2dl5gscvfvic71e7j6ne34533
(1 row)
Continue with Dolt Getting Started
to test out more Doltgres versioning functionality.
Limitations and differences from Dolt
No Git-style CLI for version control like in
Dolt, only a SQL interface.
No GSSAPI support.
Limited extension support.
Some Postgres syntax, types, functions, and features are not yet implemented. If you encounter a
missing feature you need for your application, please file an issue to let us
know.
Performance
Dolt is 1.1X slower than MySQL as
measured by a standard suite of Sysbench tests.
We use these same Sysbench tests to benchmark DoltgreSQL and compare the results to PostgreSQL.
Latency is benchmarked for Doltgres release 1.0.0. All measurements are median latency in
milliseconds.
Read Tests
Postgres
Doltgres
Multiple
covering_index_scan_postgres
17.95
2.43
0.1
groupby_scan_postgres
39.65
84.47
2.1
index_join_postgres
1.82
2.3
1.3
index_join_scan_postgres
0.68
1.67
2.5
index_scan_postgres
183.21
484.44
2.6
oltp_point_select
0.15
0.38
2.5
oltp_read_only
2.61
6.43
2.5
select_random_points
0.22
0.73
3.3
select_random_ranges
0.42
1.03
2.5
table_scan_postgres
183.21
467.3
2.6
types_table_scan_postgres
427.07
1213.57
2.8
reads_mean_multiplier
2.3
Write Tests
Postgres
Doltgres
Multiple
oltp_delete_insert_postgres
2.22
6.79
3.1
oltp_insert
1.1
3.82
3.5
oltp_read_write
4.33
13.95
3.2
oltp_update_index
1.14
3.75
3.3
oltp_update_non_index
1.12
3.49
3.1
oltp_write_only
1.79
7.3
4.1
types_delete_insert_postgres
2.3
7.43
3.2
write_mean_multiplier
3.4
Overall Mean Multiple
2.7
Correctness
Dolt is 100% compatible with MySQL
based on a standard suite of correctness tests called sqllogictest.
We use these same tests to measure the correctness of DoltgreSQL.
Here are DoltgreSQL's sqllogictest results for version 1.0.0. Tests that did not run could not
complete due to a timeout earlier in the run.
Results
Count
did not run
25552
not ok
13197
ok
5636424
timeout
7
Total Tests
5675180
Correctness Percentage
99.317097
Architecture
Doltgres emulates a Postgres server, including parsing Postgres SQL into an Abstract Syntax Tree (AST). This AST is
converted to a form that can be interpreted by the Dolt engine. Doltgres uses the same SQL engine and storage format as Dolt.
Dolt has a unique architecture that allows for version control
features at OLTP database performance. Doltgres uses the same architecture.
dolthub/doltgresql thuộc nhóm Data trên TopGit, cùng 5 topic GitHub. Trang Trending và Topics liệt kê các repo cùng số sao và cùng ngôn ngữ để so sánh.
Đọc thêm về dolthub/doltgresql ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/dolthub/doltgresql là nguồn chính thức.
dolthub/doltgresql có phải mã nguồn mở không?
Có — dolthub/doltgresql phát hành theo license Apache-2.0, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/dolthub/doltgresql.
dolthub/doltgresql có website riêng không?
TopGit chưa ghi nhận URL trang chủ cho dolthub/doltgresql. Phần README ở tab phía trên thường có link demo, hoặc xem mô tả GitHub của repo.
dolthub/doltgresql dùng license gì?
dolthub/doltgresql phát hành theo license Apache-2.0. Nên mở file LICENSE trên GitHub để xác nhận — license metadata đôi khi lệch với thực tế dự án.
dolthub/doltgresql là gì?
dolthub/doltgresql (dolthub/doltgresql) là dự án Go trên GitHub. Theo mô tả gốc: DoltgreSQL - Version Controlled PostgreSQL
Vì sao dolthub/doltgresql được xếp vào nhóm Data?
TopGit xếp dolthub/doltgresql vào nhóm Data dựa trên GitHub topics và mô tả của repo (gắn thẻ: "database-version-control", "git", "postgres"). Việc phân loại dựa trên metadata thật của repo, không phải đoán theo cảm tính biên tập.
Đọc đầy đủ README ở tab phía trên.
Vẫn đang phân vân về doltgresql?
Một cú bấm sẽ gửi câu hỏi kèm trang này cho AI — xem AI nói gì về doltgresql.