Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitade8f5c

Browse files
author
Neil Conway
committed
Minor improvements to the tablespace documentation.
1 parentee69be4 commitade8f5c

File tree

1 file changed

+28
-27
lines changed

1 file changed

+28
-27
lines changed

‎doc/src/sgml/manage-ag.sgml

Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/manage-ag.sgml,v 2.34 2004/09/30 02:40:23 neilc Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/manage-ag.sgml,v 2.35 2004/10/29 02:11:18 neilc Exp $
33
-->
44

55
<chapter id="managing-databases">
@@ -347,21 +347,22 @@ dropdb <replaceable class="parameter">dbname</replaceable>
347347
</para>
348348

349349
<para>
350-
By using tablespaces,a databaseadministrator can control the disk
351-
layoutof a <productname>PostgreSQL</> installation. This is useful in
352-
atleast two ways.Firstly, if the partition or volume on which the cluster
353-
was initialized runs out of space and cannot be extended logically
354-
or otherwise,a tablespace can be created on a different partition
355-
and useduntil the system can be reconfigured.
350+
By using tablespaces,anadministrator can control the disk layout
351+
of a <productname>PostgreSQL</> installation. This is useful in at
352+
least two ways.First, if the partition or volume on which the
353+
clusterwas initialized runs out of space and cannot be extended,
354+
a tablespace can be created on a different partition and used
355+
until the system can be reconfigured.
356356
</para>
357357

358358
<para>
359-
Secondly, tablespaces allow a database administrator to arrange data
360-
locations based on the usage patterns of database objects. For
361-
example, an index which is very heavily used can be placed on very fast,
362-
highly available disk, such as an expensive solid state device. At the same
363-
time a table storing archived data which is rarely used or not performance
364-
critical could be stored on a less expensive, slower disk system.
359+
Second, tablespaces allow an administrator to use knowledge of the
360+
usage pattern of database objects to optimize performance. For
361+
example, an index which is very heavily used can be placed on a
362+
very fast, highly available disk, such as an expensive solid state
363+
device. At the same time a table storing archived data which is
364+
rarely used or not performance critical could be stored on a less
365+
expensive, slower disk system.
365366
</para>
366367

367368
<para>
@@ -377,14 +378,14 @@ CREATE TABLESPACE fastspace LOCATION '/mnt/sda1/postgresql/data';
377378
</para>
378379

379380
<note>
380-
<para>
381-
There is usually not much point in making more than one
382-
tablespace per logical filesystem, since youcan't control the location
383-
of individual files within a logical filesystem. However,
384-
<productname>PostgreSQL</> does not enforce any such limitation, and
385-
indeed it's not directly aware of the filesystem boundaries on your
386-
system. It just stores files in the directories you tell it to use.
387-
</para>
381+
<para>
382+
There is usually not much point in making more than one
383+
tablespace per logical filesystem, since youcannot control the location
384+
of individual files within a logical filesystem. However,
385+
<productname>PostgreSQL</> does not enforce any such limitation, and
386+
indeed it is not directly aware of the filesystem boundaries on your
387+
system. It just stores files in the directories you tell it to use.
388+
</para>
388389
</note>
389390

390391
<para>
@@ -416,17 +417,17 @@ CREATE TABLE foo(i int) TABLESPACE space1;
416417
</para>
417418

418419
<para>
419-
A schema does not in itself occupy any storage (other than a system
420-
catalog entry), so assigning atablespace to aschema does not in itself
421-
do anything. What this actually does is to set a default tablespace
422-
for tables later created within the schema. If
420+
A schema does not in itself occupy any storage (other than a
421+
systemcatalog entry), so assigning aschema to atablespace does
422+
not in itselfdo anything. What this actually does is to set a
423+
default tablespacefor tables later created within the schema. If
423424
no tablespace is mentioned when creating a schema, it inherits its
424425
default tablespace from the current database.
425426
</para>
426427

427428
<para>
428-
The defaultchoice oftablespace for an index is thesametablespace
429-
already assigned tothe table the index isfor.
429+
The default tablespace for an index is the tablespace associated
430+
withthe table the index ison.
430431
</para>
431432

432433
<para>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp