Updated on 2025-03-13 GMT+08:00

Redistribution Parameters

The following functions are system functions used by gs_redis during redistribution. Do not call them unless absolutely necessary.

  • pg_get_redis_rel_end_ctid(text, name, int, int)
  • pg_get_redis_rel_start_ctid(text, name, int, int)

    Example:

    1
    2
    3
    4
    5
    6
    gaussdb=#  SELECT COUNT(1) FROM ONLY test
    WHERE ctid BETWEEN pg_get_redis_rel_start_ctid(E'test'::text,NULL::name,0,0) AND pg_get_redis_rel_end_ctid(E'test'::text,NULL::name,0,0);
     count
    -------
         0
    (1 row)
    
  • pg_enable_redis_proc_cancelable()

    Example:

    1
    2
    3
    4
    gaussdb=#  select pg_enable_redis_proc_cancelable();
     pg_enable_redis_proc_cancelable
    ---------------------------------
     t
    
  • pg_disable_redis_proc_cancelable()

    Example:

    1
    2
    3
    4
    gaussdb=#  select pg_disable_redis_proc_cancelable();
     pg_disable_redis_proc_cancelable
    ---------------------------------
     t
    
  • pg_tupleid_get_blocknum(tid)

    Example:

    1
    2
    3
    4
    5
    gaussdb=#  SELECT pg_tupleid_get_blocknum(ctid::tid) FROM test;
     pg_tupleid_get_blocknum
    -------------------------
                           0
    (1 row)
    
  • pg_tupleid_get_offset(tid)

    Example:

    1
    2
    3
    4
    5
    gaussdb=#  SELECT pg_tupleid_get_offset(ctid::tid) FROM test;
     pg_tupleid_get_offset
    -------------------------
                           1
    (1 row)
    
  • pg_tupleid_get_ctid_to_bigint (ctid)

    Example:

    1
    2
    3
    4
    5
    gaussdb=#  SELECT pg_tupleid_get_ctid_to_bigint(ctid::tid) FROM test;
     pg_tupleid_get_ctid_to_bigint
    -------------------------------
                                 1
    (1 row)