Skip to content

Commit 428aa96

Browse files
author
gpobs
committed
Update ref/create_tablespace.sgml-200602
——row178至179,调整英文内容为: must exist (<command>CREATE TABLESPACE</command> will not create it), should be empty, and must be owned by the ——row185,调整中文内容为: 要被用于表空间的目录。该目录必需存在(<command>CREATE TABLESPACE</command> 将不创建它),应该为空,并且必须由 ——row263至271,调整英文内容为: To create a tablespace <literal>dbspace</literal> at file system location <literal>/data/dbs</literal>, first create the directory using operating system facilities and set the correct ownership: <programlisting> mkdir /data/dbs chown postgres:postgres /data/dbs </programlisting> Then issue the tablespace creation command inside <productname>PostgreSQL</productname>: ——row278至284,调整中文内容为: 要在文件系统位置<literal>/data/dbs</literal>创建表空间<literal>dbspace</literal>,请首先使用操作系统工具创建目录并设置正确的所有权: <programlisting> mkdir /data/dbs chown postgres:postgres /data/dbs </programlisting> 然后在内部发出表空间创建命令 <productname>PostgreSQL</productname>: ——row292至293,调整英文内容为: To create a tablespace owned by a different database user, use a command like this: ——row299,调整中文内容为: 要创建由不同数据库用户拥有的表空间,可用类似这样的命令:
1 parent 56e1183 commit 428aa96

File tree

1 file changed

+22
-8
lines changed

1 file changed

+22
-8
lines changed

postgresql/doc/src/sgml/ref/create_tablespace.sgml

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -175,13 +175,14 @@ ____________________________________________________________________________-->
175175
<!--==========================orignal english content==========================
176176
<para>
177177
The directory that will be used for the tablespace. The directory
178-
should be empty and must be owned by the
178+
must exist (<command>CREATE TABLESPACE</command> will not create it),
179+
should be empty, and must be owned by the
179180
<productname>PostgreSQL</productname> system user. The directory must be
180181
specified by an absolute path name.
181182
</para>
182183
____________________________________________________________________________-->
183184
<para>
184-
要被用于表空间的目录。该目录应该为空并且必须由
185+
要被用于表空间的目录。该目录必需存在(<command>CREATE TABLESPACE</command> 将不创建它),应该为空,并且必须由
185186
<productname>PostgreSQL</productname>系统用户拥有。该目录必须用一个绝对
186187
路径指定。
187188
</para>
@@ -259,30 +260,43 @@ ____________________________________________________________________________-->
259260

260261
<!--==========================orignal english content==========================
261262
<para>
262-
Create a tablespace <literal>dbspace</literal> at <literal>/data/dbs</literal>:
263+
To create a tablespace <literal>dbspace</literal> at file system location
264+
<literal>/data/dbs</literal>, first create the directory using operating
265+
system facilities and set the correct ownership:
266+
<programlisting>
267+
mkdir /data/dbs
268+
chown postgres:postgres /data/dbs
269+
</programlisting>
270+
Then issue the tablespace creation command inside
271+
<productname>PostgreSQL</productname>:
263272
<programlisting>
264273
CREATE TABLESPACE dbspace LOCATION '/data/dbs';
265274
</programlisting>
266275
</para>
267276
____________________________________________________________________________-->
268277
<para>
269-
在<literal>/data/dbs</literal>创建一个表空间<literal>dbspace</literal>:
278+
要在文件系统位置<literal>/data/dbs</literal>创建表空间<literal>dbspace</literal>,请首先使用操作系统工具创建目录并设置正确的所有权:
279+
<programlisting>
280+
mkdir /data/dbs
281+
chown postgres:postgres /data/dbs
282+
</programlisting>
283+
然后在内部发出表空间创建命令
284+
<productname>PostgreSQL</productname>:
270285
<programlisting>
271286
CREATE TABLESPACE dbspace LOCATION '/data/dbs';
272287
</programlisting>
273288
</para>
274289

275290
<!--==========================orignal english content==========================
276291
<para>
277-
Create a tablespace <literal>indexspace</literal> at <literal>/data/indexes</literal>
278-
owned by user <literal>genevieve</literal>:
292+
To create a tablespace owned by a different database user, use a command
293+
like this:
279294
<programlisting>
280295
CREATE TABLESPACE indexspace OWNER genevieve LOCATION '/data/indexes';
281296
</programlisting></para>
282297
____________________________________________________________________________-->
283298
<para>
284-
在<literal>/data/indexes</literal>创建一个<literal>genevieve</literal>
285-
用户拥有的表空间<literal>indexspace</literal>:
299+
要创建由不同数据库用户拥有的表空间,可用类似这样的命令:
286300
<programlisting>
287301
CREATE TABLESPACE indexspace OWNER genevieve LOCATION '/data/indexes';
288302
</programlisting></para>

0 commit comments

Comments
 (0)