|| at Jul 4, 2006 at 1:23 am
"Dragan Zubac" <firstname.lastname@example.org> writes:
Is it possible to use transactions with 'per sub table' locks? What I
mean,if I partition a table and use transaction on that table with
constraint,will the database lock the master table (and all subtables),or
only sub table where the data is ?
Unless you're doing ALTER TABLE or something like that Postgres never locks
tables. Two backends can insert into the same table at the same time and
neither has to wait until the other is done.
If you are updating the same record then of course one has to wait but then
partitioning isn't going to help in that case.