From 4cfb558e4b25f1fc55d751e5205c3e4af2077e9c Mon Sep 17 00:00:00 2001 From: yuchao Date: Fri, 3 Nov 2023 15:31:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AE=8C=E5=96=84\h=20create?= =?UTF-8?q?=20tablespace=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/src/sgml/ref/create_tablespace.sgmlin | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/doc/src/sgml/ref/create_tablespace.sgmlin b/doc/src/sgml/ref/create_tablespace.sgmlin index b445c0b0b..5d8352ff3 100644 --- a/doc/src/sgml/ref/create_tablespace.sgmlin +++ b/doc/src/sgml/ref/create_tablespace.sgmlin @@ -11,15 +11,20 @@ CREATE TABLESPACE tablespace_name - [ OWNER user_name ] [ RELATIVE ] LOCATION 'directory' [ MAXSIZE 'space_size' ] - [with_option_clause]; + {[ OWNER user_name ] [ RELATIVE ] LOCATION 'directory' [ MAXSIZE 'space_size' ] + [with_option_clause]} | + {[LOGGING | NOLOGGING] DATAFILE 'directory' [SIZE space_size space_size_unit] [REUSE] + [AUTOEXTEND ON [NEXT next_size next_size_unit] [MAXSIZE 'autoextend_size'] | AUTOEXTEND OFF]} | + {DATAFILE 'directory' [SIZE space_size space_size_unit] [REUSE] + [AUTOEXTEND ON [NEXT next_size next_size_unit] [MAXSIZE 'autoextend_size'] | AUTOEXTEND OFF] {LOGGING | NOLOGGING}}; where option_clause can be: -WITH ( filesystem= { 'systemtype '| " systemtype " | systemtype } - [ { , address = { ' ip:port [ , ... ] ' | " ip:port [ , ... ] "} } ] -, cfgpath = { 'path '| " path " } ,storepath = { 'rootpath '| " rootpath "} -[{, random_page_cost = { 'value '| " value " | value }}] -[{,seq_page_cost = { 'value '| " value " | value }}]) +WITH ({filesystem = {'general' | "general" | general} | + address = {'ip:port[,...]'} | + cfgpath = {'path'} | + storepath = {'rootpath'} | + random_page_cost = {'value' | value} | + seq_page_cost = {'value' | value}}[,...])