create_tablespace man page on aLinux

Man page or keyword search:  
man Server   7435 pages
apropos Keyword Search (all sections)
Output format
aLinux logo
[printable version]

CREATE TABLESPACE()		 SQL Commands		   CREATE TABLESPACE()

NAME
       CREATE TABLESPACE - define a new tablespace

SYNOPSIS
       CREATE TABLESPACE tablespacename [ OWNER username ] LOCATION 'directory'

DESCRIPTION
       CREATE	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) may reside.

       A  user	with  appropriate privileges can pass tablespacename to CREATE
       DATABASE, CREATE TABLE, CREATE INDEX or ADD CONSTRAINT to have the data
       files for these objects stored within the specified tablespace.

PARAMETERS
       tablespacename
	      The  name	 of  a tablespace to be created. The name cannot begin
	      with pg_, as such names are reserved for system tablespaces.

       username
	      The name of the user who will own the  tablespace.  If  omitted,
	      defaults	to the user executing the command. Only superusers may
	      create tablespaces, but they can assign ownership of tablespaces
	      to non-superusers.

       directory
	      The  directory  that will be used for the tablespace. The direcā€
	      tory must be empty and must be owned by  the  PostgreSQL	system
	      user. The directory must be specified by an absolute path name.

NOTES
       Tablespaces are only supported on systems that support symbolic links.

EXAMPLES
       Create 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';

COMPATIBILITY
       CREATE TABLESPACE is a PostgreSQL extension.

SEE ALSO
       CREATE DATABASE [create_database(7)], CREATE  TABLE  [create_table(l)],
       CREATE  INDEX  [create_index(l)], DROP TABLESPACE [drop_tablespace(l)],
       ALTER TABLESPACE [alter_tablespace(l)]

SQL - Language Statements	  2005-11-05		   CREATE TABLESPACE()
[top]

List of man pages available for aLinux

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
...................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net