Re: dynamic partition table inserts

2023-01-25 Thread Николай Кобзарев
Hi! Please be warned that this approach (if not exists create) is not thread safe, even "create table if not exists" syntax is not thread safe too. Im using this kind of "dynamic partitioning" and use Advisory locks to make sure creating partitions is thread safe. Im using native partitioning, s

dynamic partition table inserts

2023-01-25 Thread Ted Toth
I'm creating partition tables on the fly following the technique described in https://minervadb.com/index.php/postgresql-dynamic-partitioning/ . Regardless of whether a partition table is created or already exists all I really want to do is change the destination table (TG_TABLE_NAME?) of the inser