postgresql - Can two Rails threads be using the same Postgres session? -


my rails app getting duplicate key errors insertions in postgres table (one of columns has uniqueness constraint). used postgres session-level advisory lock mutex it's still happening.

my theory 2 rails workers sharing same postgres session, , second 1 doesn't blocked first. possible?


Comments