AddAuth — 현재 트랜잭션에 이용될 승인 토큰을 추가합니다.
boolean AddAuth(
text auth_token)
;
현재 트랜잭션에 이용될 승인 토큰을 추가합니다.
Adds the current transaction identifier and authorization token to a temporary table called temp_lock_have_table
.
1.1.3 버전부터 사용할 수 있습니다.
SELECT LockRow('towns', '353', 'priscilla'); BEGIN TRANSACTION; SELECT AddAuth('joey'); UPDATE towns SET geom = ST_Translate(geom,2,2) WHERE gid = 353; COMMIT; ---Error-- ERROR: UPDATE where "gid" = '353' requires authorization 'priscilla'