-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow writes to columnstore and Postgres tables in the same transaction
Remove the lockdowns introduced in duckdb/pg_duckdb#433 since the same restriction doesn't apply to us. In our case, Postgres remains the source of truth for columnstore tables, and DuckDB serves purely as the execution engine for reading and writing to those tables.
- Loading branch information
Showing
4 changed files
with
52 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
CREATE TABLE s (a int); | ||
CREATE TABLE t (b int) USING columnstore; | ||
BEGIN; | ||
INSERT INTO s VALUES (1); | ||
INSERT INTO t VALUES (2); | ||
COMMIT; | ||
SELECT * FROM s; | ||
a | ||
--- | ||
1 | ||
(1 row) | ||
|
||
SELECT * FROM t; | ||
b | ||
--- | ||
2 | ||
(1 row) | ||
|
||
DROP TABLE s, t; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
CREATE TABLE s (a int); | ||
CREATE TABLE t (b int) USING columnstore; | ||
|
||
BEGIN; | ||
INSERT INTO s VALUES (1); | ||
INSERT INTO t VALUES (2); | ||
COMMIT; | ||
|
||
SELECT * FROM s; | ||
SELECT * FROM t; | ||
|
||
DROP TABLE s, t; |