You are on page 1of 2

PostGIS 1.5.

1 Manual
253 / 315

7.11.3 DisableLongTransactions
Name
DisableLongTransactions Disable long transaction support. This function removes the long transaction support metadata tables,
and drops all triggers attached to lock-checked tables.

Synopsis
text DisableLongTransactions

Description
Disable long transaction support. This function removes the long transaction support metadata tables, and drops all triggers
attached to lock-checked tables.
Drops meta table called authorization_table and a view called authorized_tables and all triggers called checkauthtrigger
Availability: 1.1.3

Examples
SELECT DisableLongTransactions();
--result-Long transactions support disabled

See Also
EnableLongTransactions

7.11.4 EnableLongTransactions
Name
EnableLongTransactions Enable long transaction support. This function creates the required metadata tables, needs to be called
once before using the other functions in this section. Calling it twice is harmless.

Synopsis
text EnableLongTransactions

Description
Enable long transaction support. This function creates the required metadata tables, needs to be called once before using the
other functions in this section. Calling it twice is harmless.
Creates a meta table called authorization_table and a view called authorized_tables
Availability: 1.1.3

PostGIS 1.5.1 Manual


254 / 315

Examples
SELECT EnableLongTransactions();
--result-Long transactions support enabled

See Also
DisableLongTransactions

7.11.5 LockRow
Name
LockRow Set lock/authorization for specific row in table

Synopsis
integer 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);

Description
Set lock/authorization for specific row in table <authid> is a text value, <expires> is a timestamp defaulting to now()+1hour.
Returns 1 if lock has been assigned, 0 otherwise (already locked by other auth)
Availability: 1.1.3

Examples
SELECT LockRow(public, towns, 2, joey);
LockRow
------1
--Joey has already locked the record and Priscilla is out of luck
SELECT LockRow(public, towns, 2, priscilla);
LockRow
------0

See Also
UnlockRows

7.11.6 UnlockRows
Name
UnlockRows Remove all locks held by specified authorization id. Returns the number of locks released.

You might also like