Comments (5)
Okay, so we can trigger on our clusters with just this:
START TRANSACTION;
CREATE TABLE public.table2 (
id int8 GENERATED ALWAYS AS IDENTITY NOT NULL,
CONSTRAINT table2_pk PRIMARY KEY (id)
);
SELECT create_reference_table('public.table2');
CREATE TABLE public.table1 (
id int8 GENERATED ALWAYS AS IDENTITY NOT NULL,
table2_id int8 NOT NULL,
column0 int2 NOT NULL,
column1 timestamptz NOT NULL,
column2 int2 NOT NULL,
column3 int2,
column4 int8,
column5 int8,
column6 int8,
CONSTRAINT table1_pk PRIMARY KEY (id,table2_id),
CONSTRAINT table1_table2_fk FOREIGN KEY (table2_id) REFERENCES public.table2(id)
);
SELECT create_distributed_table('public.table1', 'table2_id');
COMMIT;
from citus.
We have recreated one of the clusters with only one worker to test if the issue persists and we keep encountering it even in 1 coordinator + 1 worker setup.
Using bigserial
seems to work as a workaround.
from citus.
Could you share the definition of public.table2
? So that we can reproduce more easily.
from citus.
Unfortunately table2
is fairly complex and references multiple other tables. I will see if I can trigger this with some simple table.
We have also encountered this same exact issue in similar table later on and looking at things in common:
table2
is reference tabletable1
PK has the exact same structure (first column isGENERATED ALWAYS AS IDENTITY
, second one is foreign key)table1
is sharded using the foreign key that was used as second column in PK
from citus.
@gokhangulbiz Could you have quick look at this to understand what is going on here? It seems related to the GENERATED AS IDENTITY work that you did.
from citus.
Related Issues (20)
- Can't add entry for certificate authentication to pg_dist_authinfo HOT 2
- SQL Error [XX000]: ERROR: cache lookup failed for type 0 with pg auto explain HOT 2
- BUG: can't call parameterized distributed procedures outside an explicit transaction in Citus 12.1.3 (but not 12.1.0?) HOT 3
- Load data to a table but different sum shards size in worker nodes HOT 1
- Patch for adding support for Rocky Linux to rpm.sh HOT 1
- High Availability improvements coming? Use Replicas for reads?
- postgres[495645]: segfault at 0 ip 00007f318b17e1f4 sp 00007ffc7f1b15d8 error 4 in citus.so[7f318b0a4000+ee000] likely on CPU 93 (core 1, socket 1) HOT 5
- PostgreSQL 17 support HOT 1
- wrong one
- Execution order of statements of a transaction HOT 1
- pg_stats_user_tables last_autovacuum for distrubuted tables HOT 3
- Having error while using checkout v4 action in check-sql-snapshots
- Debezium support HOT 2
- [Feature request] Worker nodes read only mode HOT 1
- looks like Issue with MERGE Command. HOT 1
- [doc] wrong code comments for function PopUnassignedPlacementExecution HOT 1
- [Feature question] CDC support in Citus
- `alter_table_set_access_method` AccessExclusiveLock HOT 2
- ERROR: no binary output function available for type theta_sketch HOT 4
- Distributed transactions under a concurrency scenario HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from citus.