Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
7bcdf2eb
Commit
7bcdf2eb
authored
Jul 12, 2004
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tablespace examples for CREATE TABLE/INDEX/SCHEMA/DATABASE as well as
some other examples for CREATE DATABASE. Gavin Sherry
parent
3095c104
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
55 additions
and
4 deletions
+55
-4
doc/src/sgml/ref/create_database.sgml
doc/src/sgml/ref/create_database.sgml
+21
-1
doc/src/sgml/ref/create_index.sgml
doc/src/sgml/ref/create_index.sgml
+10
-1
doc/src/sgml/ref/create_schema.sgml
doc/src/sgml/ref/create_schema.sgml
+11
-1
doc/src/sgml/ref/create_table.sgml
doc/src/sgml/ref/create_table.sgml
+13
-1
No files found.
doc/src/sgml/ref/create_database.sgml
View file @
7bcdf2eb
<!--
$PostgreSQL: pgsql/doc/src/sgml/ref/create_database.sgml,v 1.
39 2004/06/18 06:13:05 tgl
Exp $
$PostgreSQL: pgsql/doc/src/sgml/ref/create_database.sgml,v 1.
40 2004/07/12 01:22:53 momjian
Exp $
PostgreSQL documentation
-->
...
...
@@ -169,6 +169,26 @@ CREATE DATABASE <replaceable class="PARAMETER">name</replaceable>
<programlisting>
CREATE DATABASE lusiadas;
</programlisting>
</para>
<para>
<para>
To create a database <literal>sales</> owned by user <literal>salesapp</>>
with a default tablespace of <literal>salesspace</>:
<programlisting>
CREATE DATABASE sales OWNER salesapp TABLESPACE salesspace;
</programlisting>
</para>
<para>
To create a database <literal>music</> which supports the ISO-8859-1
character set:
<programlisting>
CREATE DATABASE music ENCODING 'LATIN1';
</programlisting>
</para>
</refsect1>
...
...
doc/src/sgml/ref/create_index.sgml
View file @
7bcdf2eb
<!--
$PostgreSQL: pgsql/doc/src/sgml/ref/create_index.sgml,v 1.4
8 2004/06/18 06:13:05 tgl
Exp $
$PostgreSQL: pgsql/doc/src/sgml/ref/create_index.sgml,v 1.4
9 2004/07/12 01:22:53 momjian
Exp $
PostgreSQL documentation
-->
...
...
@@ -251,6 +251,15 @@ CREATE [ UNIQUE ] INDEX <replaceable class="parameter">name</replaceable> ON <re
the table <literal>films</literal>:
<programlisting>
CREATE UNIQUE INDEX title_idx ON films (title);
</programlisting>
</para>
<para>
To create an index on the column <literal>code</> in the table
<literal>films</> and have the index reside in the tablespace
<literal>indexspace</>:
<programlisting>
CREATE INDEX code_idx ON films(code) TABLESPACE indexspace;
</programlisting>
</para>
...
...
doc/src/sgml/ref/create_schema.sgml
View file @
7bcdf2eb
<!--
$PostgreSQL: pgsql/doc/src/sgml/ref/create_schema.sgml,v 1.1
3 2004/06/25 21:55:50 tgl
Exp $
$PostgreSQL: pgsql/doc/src/sgml/ref/create_schema.sgml,v 1.1
4 2004/07/12 01:22:53 momjian
Exp $
PostgreSQL documentation
-->
...
...
@@ -160,6 +160,16 @@ CREATE VIEW hollywood.winners AS
SELECT title, release FROM hollywood.films WHERE awards IS NOT NULL;
</programlisting>
</para>
<para>
Create a schema <literal>sales</> whose tables, indexes and sequences
will be stored in the tablespace <literal>mirrorspace</> by default:
<programlisting>
CREATE SCHEMA sales TABLESPACE mirrorspace;
</programlisting>
</para>
</refsect1>
<refsect1>
...
...
doc/src/sgml/ref/create_table.sgml
View file @
7bcdf2eb
<!--
$PostgreSQL: pgsql/doc/src/sgml/ref/create_table.sgml,v 1.8
2 2004/06/18 06:13:05 tgl
Exp $
$PostgreSQL: pgsql/doc/src/sgml/ref/create_table.sgml,v 1.8
3 2004/07/12 01:22:53 momjian
Exp $
PostgreSQL documentation
-->
...
...
@@ -821,6 +821,18 @@ CREATE TABLE distributors (
name varchar(40),
UNIQUE(name)
);
</programlisting>
</para>
<para>
Create table <structname>cinemas</> in tablespace <structname>diskvol1</>:
<programlisting>
CREATE TABLE cinemas (
id serial,
name text,
location text
) TABLESPACE diskvol1;
</programlisting>
</para>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment