in sql server
begin tran
select * from foos with (rowlock, xlock, holdlock) where id =7
...
commit tran
will lock the row for reading and writing and it will hold the lock until the end of the transaction,
is there an equivalent of this in postgresql ?