mirror of
https://github.com/postgres/postgres.git
synced 2025-06-29 10:41:53 +03:00
Add transaction-level advisory locks.
They share the same locking namespace with the existing session-level advisory locks, but they are automatically released at the end of the current transaction and cannot be released explicitly via unlock functions. Marko Tiikkaja, reviewed by me.
This commit is contained in:
@ -995,15 +995,23 @@ extern Datum show_all_settings(PG_FUNCTION_ARGS);
|
||||
/* lockfuncs.c */
|
||||
extern Datum pg_lock_status(PG_FUNCTION_ARGS);
|
||||
extern Datum pg_advisory_lock_int8(PG_FUNCTION_ARGS);
|
||||
extern Datum pg_advisory_xact_lock_int8(PG_FUNCTION_ARGS);
|
||||
extern Datum pg_advisory_lock_shared_int8(PG_FUNCTION_ARGS);
|
||||
extern Datum pg_advisory_xact_lock_shared_int8(PG_FUNCTION_ARGS);
|
||||
extern Datum pg_try_advisory_lock_int8(PG_FUNCTION_ARGS);
|
||||
extern Datum pg_try_advisory_xact_lock_int8(PG_FUNCTION_ARGS);
|
||||
extern Datum pg_try_advisory_lock_shared_int8(PG_FUNCTION_ARGS);
|
||||
extern Datum pg_try_advisory_xact_lock_shared_int8(PG_FUNCTION_ARGS);
|
||||
extern Datum pg_advisory_unlock_int8(PG_FUNCTION_ARGS);
|
||||
extern Datum pg_advisory_unlock_shared_int8(PG_FUNCTION_ARGS);
|
||||
extern Datum pg_advisory_lock_int4(PG_FUNCTION_ARGS);
|
||||
extern Datum pg_advisory_xact_lock_int4(PG_FUNCTION_ARGS);
|
||||
extern Datum pg_advisory_lock_shared_int4(PG_FUNCTION_ARGS);
|
||||
extern Datum pg_advisory_xact_lock_shared_int4(PG_FUNCTION_ARGS);
|
||||
extern Datum pg_try_advisory_lock_int4(PG_FUNCTION_ARGS);
|
||||
extern Datum pg_try_advisory_xact_lock_int4(PG_FUNCTION_ARGS);
|
||||
extern Datum pg_try_advisory_lock_shared_int4(PG_FUNCTION_ARGS);
|
||||
extern Datum pg_try_advisory_xact_lock_shared_int4(PG_FUNCTION_ARGS);
|
||||
extern Datum pg_advisory_unlock_int4(PG_FUNCTION_ARGS);
|
||||
extern Datum pg_advisory_unlock_shared_int4(PG_FUNCTION_ARGS);
|
||||
extern Datum pg_advisory_unlock_all(PG_FUNCTION_ARGS);
|
||||
|
Reference in New Issue
Block a user