Top
Enterprise Postgres 17 SP1 Operation Guide

B.4.3 pgx_drop_confidential_policy

Description

Deletes masking policies

Format

pgx_drop_confidential_policy(
[schema_name	:= 'schemaName', ]
table_name 	:= 'tableName', 
policy_name	:= 'policyName'
)

Argument

Details are as follows.

Argument

Data type

Description

Default value

schema_name

varchar(63)

Schema name of table for which a masking policy is deleted

'public'

table_name

varchar(63)

Name of table for which a masking policy is deleted

Mandatory

policy_name

varchar(63)

Masking policy name

Mandatory

Details about whether arguments can be omitted are as follows.

Argument

Mandatory or optional

schema_name

Y

table_name

N

policy_name

N

Y: Can be omitted; N: Cannot be omitted

Return value

Return value

Description

TRUE

Ended normally

FALSE

Ended abnormally

Execution example

Deleting masking policy p1

postgres=# select pgx_drop_confidential_policy(table_name := 't1', policy_name := 'p1');
 pgx_drop_confidential_policy 
-------------------------------
 t
(1 row)

Description

See

Refer to "String Constants" in the PostgreSQL Documentation for information on the strings to specify for arguments.