experiments-postgresql-locks/pg_lock_hash_info--1.0.sql

24 lines
501 B
MySQL
Raw Normal View History

2025-04-03 05:39:57 +00:00
CREATE FUNCTION pg_lock_hash_info()
RETURNS TABLE (
2025-04-04 21:11:35 +00:00
dsize INT,
nsegs INT,
max_bucket INT,
keysize INT,
entrysize INT,
num_partitions INT,
max_dsize INT,
ssize INT,
sshift INT,
nelem_alloc INT
) AS 'pg_lock_hash_info', 'pg_lock_hash_info'
LANGUAGE C STRICT;
CREATE FUNCTION pg_lock_hash_bucket_info()
RETURNS TABLE (
2025-04-03 05:39:57 +00:00
directory INT,
2025-04-04 21:11:35 +00:00
bucket INT,
2025-04-03 05:39:57 +00:00
bucket_hash INT,
2025-04-04 21:11:35 +00:00
entries INT
) AS 'pg_lock_hash_info', 'pg_lock_hash_bucket_info'
LANGUAGE C STRICT;