I would like to know if there´s any command to unlock or release a lock made by the same transaction.
Pseudo-code
FUNCTION
TRANSACTION
LOOP
TABLE LOCK
table operations...
"TABLE UNLOCK WANTED"
END
END OF TRANSACTION
END OF FUNCTION
The function query can take a while as the LOOP might be large, so I would like to be able to unlock before the transaction is fully finished.