diff --git a/doc/src/sgml/ref/create_database.sgml b/doc/src/sgml/ref/create_database.sgml index deb76d30f5..1c5f546bbe 100644 --- a/doc/src/sgml/ref/create_database.sgml +++ b/doc/src/sgml/ref/create_database.sgml @@ -1,5 +1,5 @@ @@ -169,6 +169,26 @@ CREATE DATABASE name CREATE DATABASE lusiadas; + + + + + + + To create a database sales owned by user salesapp> + with a default tablespace of salesspace: + + +CREATE DATABASE sales OWNER salesapp TABLESPACE salesspace; + + + + + To create a database music which supports the ISO-8859-1 + character set: + + +CREATE DATABASE music ENCODING 'LATIN1'; diff --git a/doc/src/sgml/ref/create_index.sgml b/doc/src/sgml/ref/create_index.sgml index 93ae0c1c81..c45df0c5be 100644 --- a/doc/src/sgml/ref/create_index.sgml +++ b/doc/src/sgml/ref/create_index.sgml @@ -1,5 +1,5 @@ @@ -251,6 +251,15 @@ CREATE [ UNIQUE ] INDEX name ON films: CREATE UNIQUE INDEX title_idx ON films (title); + + + + + To create an index on the column code in the table + films and have the index reside in the tablespace + indexspace: + +CREATE INDEX code_idx ON films(code) TABLESPACE indexspace; diff --git a/doc/src/sgml/ref/create_schema.sgml b/doc/src/sgml/ref/create_schema.sgml index 4f56341ce3..dc7584c884 100644 --- a/doc/src/sgml/ref/create_schema.sgml +++ b/doc/src/sgml/ref/create_schema.sgml @@ -1,5 +1,5 @@ @@ -160,6 +160,16 @@ CREATE VIEW hollywood.winners AS SELECT title, release FROM hollywood.films WHERE awards IS NOT NULL; + + + Create a schema sales whose tables, indexes and sequences + will be stored in the tablespace mirrorspace by default: + + +CREATE SCHEMA sales TABLESPACE mirrorspace; + + + diff --git a/doc/src/sgml/ref/create_table.sgml b/doc/src/sgml/ref/create_table.sgml index 40462752f1..31f5d14787 100644 --- a/doc/src/sgml/ref/create_table.sgml +++ b/doc/src/sgml/ref/create_table.sgml @@ -1,5 +1,5 @@ @@ -821,6 +821,18 @@ CREATE TABLE distributors ( name varchar(40), UNIQUE(name) ); + + + + + Create table cinemas in tablespace diskvol1: + + +CREATE TABLE cinemas ( + id serial, + name text, + location text +) TABLESPACE diskvol1;