plpgsql trigger - does it auto-acquire a lock?
plpgsql trigger - does it auto-acquire a lock?
От:
"Marc G. Fournier" <scrappy@postgresql.org>
Дата:
Second part to the other question ... the function/trigger attempts to be smart ... basically, it checks the updated record to see if there has been any changes that warrant updating the tsearch2 index, and only does it if it needs to ... Apparently, even if there are no changes, the Lock is being acquired ... kinda like what would happen if you were doing a SELECT * FROM