GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing www.postgresql.org — CREATE TABLESPACE November 19, 2026: PostgreSQL 19 Released!
Development Versions:
devel
This documentation is for an unsupported version of PostgreSQL.
You may want to view the same page for the current version, or one of the other supported versions listed above instead. CREATE TABLESPACECREATE TABLESPACE — define a new tablespace SynopsisCREATE TABLESPACE Description
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 WarningA tablespace cannot be used independently of the cluster in which it is defined; see Section 23.6. Parameters
NotesTablespaces are only supported on systems that support symbolic links.
ExamplesTo create a tablespace mkdir /data/dbs chown postgres:postgres /data/dbs Then issue the tablespace creation command inside PostgreSQL: CREATE TABLESPACE dbspace LOCATION '/data/dbs'; To create a tablespace owned by a different database user, use a command like this: CREATE TABLESPACE indexspace OWNER genevieve LOCATION '/data/indexes'; Compatibility
|
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |