Skip to content

sys.key

This system view returns information about the keys for which the current user has encrypt or decrypt rights or is the owner.

Column NameData TypeDescription
key_idbigintThe unique ID of the key
nametextThe name of the key
schema_idbigintThe unique ID of the schema
owner_idbigintThe unique ID of the user who owns the key
creation_timetimestamp with time zoneWhen the key was created

For example:

premdb=> select * from sys.key;
 key_id |   name   | schema_id | owner_id |         creation_time         
--------+----------+-----------+----------+-------------------------------
  16480 | yb100key |      2200 |    16007 | 2019-11-07 15:26:30.577896-08
(1 row)