News for hackers. Stuff that matters.
Re:Testing Postgres race conditions with synchronization bar... by deepsun on Monday February 16, 2026 @07:01PM (#47041990)
I always did "INSERT ... ON CONFLICT DO NOTHING".
Re:Testing Postgres race conditions with synchronization bar... by nurettin on Tuesday February 17, 2026 @12:23AM (#47043992)
Does that queue when the table is locked? Or just skip writes entirely whenever there is a transaction?
Re:Testing Postgres race conditions with synchronization bar... by deepsun on Tuesday February 17, 2026 @09:46PM (#47056537)
Yes, unless you SET LOCAL lock_timeout = '1ms'; inside the transaction.