# 安全函数
- pg_delete_audit() 描述：删除指定时间段的审计日志。多租场景下，non-PDB调用该函数时可以删除全局指定时间段的审计日志，PDB下调用该函数仅允许删除该PDB相关指定时间段的审计日志。
  返回值类型：void
  
- pg_query_audit() 描述：查看数据库当前节点审计日志。
  多租场景：non-PDB调用该函数时返回全部审计日志，PDB下调用该函数仅返回该PDB相关审计日志。
  返回值类型：record
  函数返回字段如下：
  
  | 名称              | 类型                       | 描述       |
  |:---|:---|:---|
  | time            | timestamp with time zone | 操作时间     |
  | type            | text                     | 操作类型     |
  | result          | text                     | 操作结果     |
  | userid                                                                            | oid                                                                                       | 用户id                                                                      |
  | username        | text                                       | 执行操作的用户名 |
  | database        | text                     | 数据库名称    |
  | client_conninfo | text                     | 客户端连接信息  |
  | object_name     | text                     | 操作对象名称   |
  | detail_info     | text                     | 执行操作详细信息 |
  | node_name                        | text                                       | 节点名称                       |
  | thread_id                           | text                                       | 线程id                          |
  | local_port                       | text                                      | 本地端口                        |
  | remote_port                        | text                                         | 远端端口                        |
     
  
 
