Skip to content

Commit

Permalink
Don't propagate fk constraints to osm chunk
Browse files Browse the repository at this point in the history
The osm chunk is a foreign table which does not support constraints
so we have to exclude the osm chunk when propagating fk constraints.
  • Loading branch information
svenklemm committed Sep 3, 2024
1 parent 6f1379e commit 14a71f8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/foreign_key.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ propagate_fk(Relation ht_rel, HeapTuple fk_tuple, List *chunks)
foreach (lc, chunks)
{
Chunk *chunk = lfirst(lc);
if (chunk->fd.osm_chunk)
continue;

clone_constraint_on_chunk(chunk,
ht_rel,
fk,
Expand Down

0 comments on commit 14a71f8

Please sign in to comment.