Query: create_tablespace
OS: centos
Section: 7
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
CREATETABLESPACE(7) PostgreSQL 9.2.7 Documentation CREATE TABLESPACE(7)NAMECREATE_TABLESPACE - define a new tablespaceSYNOPSISCREATE TABLESPACE tablespace_name [ OWNER user_name ] LOCATION 'directory'DESCRIPTIONCREATE TABLESPACE registers a new cluster-wide tablespace. The tablespace name must be distinct from the name of any existing tablespace in the database cluster. A tablespace allows superusers to define an alternative location on the file system where the data files containing database objects (such as tables and indexes) can reside. A user with appropriate privileges can pass tablespace_name to CREATE DATABASE, CREATE TABLE, CREATE INDEX or ADD CONSTRAINT to have the data files for these objects stored within the specified tablespace.PARAMETERStablespace_name The name of a tablespace to be created. The name cannot begin with pg_, as such names are reserved for system tablespaces. user_name The name of the user who will own the tablespace. If omitted, defaults to the user executing the command. Only superusers can create tablespaces, but they can assign ownership of tablespaces to non-superusers. directory The directory that will be used for the tablespace. The directory should be empty and must be owned by the PostgreSQL system user. The directory must be specified by an absolute path name.NOTESTablespaces are only supported on systems that support symbolic links. CREATE TABLESPACE cannot be executed inside a transaction block.EXAMPLESCreate a tablespace dbspace at /data/dbs: CREATE TABLESPACE dbspace LOCATION '/data/dbs'; Create a tablespace indexspace at /data/indexes owned by user genevieve: CREATE TABLESPACE indexspace OWNER genevieve LOCATION '/data/indexes';COMPATIBILITYCREATE TABLESPACE is a PostgreSQL extension.SEE ALSOCREATE DATABASE (CREATE_DATABASE(7)), CREATE TABLE (CREATE_TABLE(7)), CREATE INDEX (CREATE_INDEX(7)), DROP TABLESPACE (DROP_TABLESPACE(7)), ALTER TABLESPACE (ALTER_TABLESPACE(7)) PostgreSQL 9.2.7 2014-02-17 CREATE TABLESPACE(7)
Related Man Pages |
---|
alter_index(7) - centos |
create_tablespace(7) - centos |
alter_index(7) - suse |
create_tablespace(7) - suse |
create_database(7) - debian |
Similar Topics in the Unix Linux Community |
---|
command not clear |
awk help required to group output and print a part of group line and original line |
Replacement with sed |
Script to check Oracle tablespace |
Find and replace? |