citusdata / citusdata/citus

Creating lots of distributed tables concurrently results in deadlock

Open
#2,480 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
12.8k
Forks
794
Avg merge
2d 14h
Merged PRs (30d)
31

Description

One of our users does the following transaction concurrently for many tables and sees deadlocks:

```
BEGIN;
i) Creates a table and distributes it and create index.
ii) INSERT INTO local table (metadata)
iii) CREATE a coordinator table.
iv) set permissions on distributed table.
END;
```

I looked at the code for few hours, but don't have much clues yet.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.