CREATE FUNCTION pg_lock_hash_info()
RETURNS TABLE (
    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 (
    directory INT,
    bucket INT,
    bucket_hash INT,
    entries INT
) AS 'pg_lock_hash_info', 'pg_lock_hash_bucket_info'
LANGUAGE C STRICT;
