db_lock_table($table)
drupal/includes/database.pgsql.inc, line 377
Lock a table. This function automatically starts a transaction.
| Name | Description |
|---|---|
| Database abstraction layer | Allow the use of different database servers using the same code base. |
function db_lock_table($table) {
db_query('BEGIN; LOCK TABLE {'. db_escape_table($table) .'} IN EXCLUSIVE MODE');
}