Tablespaces - Knowledge Base Archives - Hivelocity Hosting https://www.hivelocity.net/kb/tag/tablespaces/ Dedicated Servers, Private Cloud & Colocation Thu, 07 Dec 2023 13:40:57 +0000 en-US hourly 1 https://wordpress.org/?v=6.6 Manage Tablespaces https://www.hivelocity.net/kb/manage-tablespaces/ https://www.hivelocity.net/kb/manage-tablespaces/#respond Sun, 14 Nov 2010 12:02:06 +0000 https://kb.hivelocity.net/?p=2459 Tablespaces in PostgreSQL allow database administrators to define locations in the file system where the files representing database objects can be stored. Once created, a tablespace can be referred to by name when creating database objects. By using tablespaces, an administrator can control the disk layout of a PostgreSQL installation. This is useful in at …

Manage Tablespaces Read More »

The post Manage Tablespaces appeared first on Hivelocity Hosting.

]]>
Tablespaces in PostgreSQL allow database administrators to define locations in the file system where the files representing database objects can be stored. Once created, a tablespace can be referred to by name when creating database objects.

By using tablespaces, an administrator can control the disk layout of a PostgreSQL installation. This is useful in at least two ways. First, if the partition or volume on which the cluster was initialized runs out of space and cannot be extended, a tablespace can be created on a different partition and used until the system can be reconfigured.

Second, tablespaces allow an administrator to use knowledge of the usage pattern of database objects to optimize performance. For example, an index which is very heavily used can be placed on a very fast, highly available disk, such as an expensive solid state device. At the same time a table storing archived data which is rarely used or not performance critical could be stored on a less expensive, slower disk system.

To define a tablespace, use t

The post Manage Tablespaces appeared first on Hivelocity Hosting.

]]>
https://www.hivelocity.net/kb/manage-tablespaces/feed/ 0