12.07.2015 Views

PostGIS 1.5.8 Manual - Fedora Project Packages GIT repositories

PostGIS 1.5.8 Manual - Fedora Project Packages GIT repositories

PostGIS 1.5.8 Manual - Fedora Project Packages GIT repositories

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>PostGIS</strong> <strong>1.5.8</strong> <strong>Manual</strong>248 / 310Synopsisinteger LockRow(text a_schema_name, text a_table_name, text a_row_key, text an_auth_token, timestamp expire_dt);integer LockRow(text a_table_name, text a_row_key, text an_auth_token, timestamp expire_dt);integer LockRow(text a_table_name, text a_row_key, text an_auth_token);DescriptionSet lock/authorization for specific row in table is a text value, is a timestamp defaulting to now()+1hour.Returns 1 if lock has been assigned, 0 otherwise (already locked by other auth)Availability: 1.1.3ExamplesSELECT LockRow(’public’, ’towns’, ’2’, ’joey’);LockRow-------1--Joey has already locked the record and Priscilla is out of luckSELECT LockRow(’public’, ’towns’, ’2’, ’priscilla’);LockRow-------0See AlsoUnlockRows7.11.6 UnlockRowsUnlockRows — Remove all locks held by specified authorization id. Returns the number of locks released.Synopsisinteger UnlockRows(text auth_token);DescriptionRemove all locks held by specified authorization id. Returns the number of locks released.Availability: 1.1.3ExamplesSELECT LockRow(’towns’, ’353’, ’priscilla’);SELECT LockRow(’towns’, ’2’, ’priscilla’);SELECT UnLockRows(’priscilla’);UnLockRows------------2

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!