ENFORCE_OBJECT_STORAGE_POLICY
Enterprise Mode only
Applies storage policies of the specified object immediately. By default, the Tuple Mover enforces object storage policies after all pending mergeout operations are complete. Calling this function is equivalent to setting the enforce
argument when using RETIRE_LOCATION. You typically use this function as the last step before dropping a storage location.
This is a meta-function. You must call meta-functions in a top-level SELECT statement.
Behavior type
VolatileSyntax
ENFORCE_OBJECT_STORAGE_POLICY ( 'object-name' [,'key-min', 'key-max'] )
Arguments
object-name
- The database object whose storage policies are to be applied, one of the following:
-
database
: Appliesdatabase
storage policies. -
[
database
.]
schema
: Appliesschema
storage policies. -
[[
database
.]
schema
.]
table
: Appliestable
storage policies. Iftable
is in any schema other thanpublic
, you must supply the schema name.
In all cases,
database
must be the name of the current database. -
key-min
,key-max
- Valid only if
object-name
is a table, specifies the range of table partition key values on which to perform the move.
Privileges
One of the following:
-
Superuser
-
Object owner and access to its storage location.
Examples
Apply storage policy updates to the test
table:
=> SELECT ENFORCE_OBJECT_STORAGE_POLICY ('test');