Alters the type of data that a storage location holds.


ALTER_LOCATION_USE ( 'path' , '[node]' , 'usage' ) 



Where the storage location is mounted.


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 (''). If the usage is SHARED TEMP or SHARED USER, you must alter it on all nodes.


One of the following:

  • DATA: The storage location stores only data files.
  • TEMP: The location stores only temporary files that are created during loads or queries.
  • DATA,TEMP: The location can store both types of files.




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.


The following example alters a storage location across all cluster nodes to store only data:

=> SELECT ALTER_LOCATION_USE ('/thirdSL/' , '' , 'DATA');

See Also