ALTER_LOCATION_USE
Alters the type of data that a storage location holds.
Syntax
ALTER_LOCATION_USE ( 'path' , '[node]' , 'usage' )
Arguments
path |
Where the storage location is mounted. |
node |
The Vertica node on which to alter the storage location. To alter the location on all cluster nodes in a single transaction, use an empty string ( |
usage |
One of the following:
|
Privileges
Superuser
Restrictions
You cannot change a storage location from a USER usage type if you created the location that way, or to a USER type if you did not. You can change a USER storage location to specify DATA (storing TEMP files is not supported). However, doing so does not affect the primary objective of a USER storage location, to be accessible by non-dbadmin users with assigned privileges.
You cannot change a storage location from SHARED TEMP or SHARED USER to SHARED DATA or the reverse.
Monitoring Storage Locations
For information about the disk storage used on each node, query the DISK_STORAGE
system table.
Example
The following example alters a storage location across all cluster nodes to store only data:
=> SELECT ALTER_LOCATION_USE ('/thirdSL/' , '' , 'DATA');