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
d55f8781
Commit
d55f8781
authored
Nov 11, 2000
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Markup enhancements, some factual corrections.
parent
8095924b
Changes
12
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
463 additions
and
565 deletions
+463
-565
doc/src/sgml/ref/createdb.sgml
doc/src/sgml/ref/createdb.sgml
+45
-56
doc/src/sgml/ref/createlang.sgml
doc/src/sgml/ref/createlang.sgml
+33
-32
doc/src/sgml/ref/createuser.sgml
doc/src/sgml/ref/createuser.sgml
+41
-53
doc/src/sgml/ref/drop_database.sgml
doc/src/sgml/ref/drop_database.sgml
+2
-2
doc/src/sgml/ref/dropdb.sgml
doc/src/sgml/ref/dropdb.sgml
+43
-51
doc/src/sgml/ref/droplang.sgml
doc/src/sgml/ref/droplang.sgml
+32
-32
doc/src/sgml/ref/dropuser.sgml
doc/src/sgml/ref/dropuser.sgml
+42
-51
doc/src/sgml/ref/initdb.sgml
doc/src/sgml/ref/initdb.sgml
+91
-98
doc/src/sgml/ref/initlocation.sgml
doc/src/sgml/ref/initlocation.sgml
+43
-84
doc/src/sgml/ref/ipcclean.sgml
doc/src/sgml/ref/ipcclean.sgml
+15
-46
doc/src/sgml/ref/pg_config-ref.sgml
doc/src/sgml/ref/pg_config-ref.sgml
+20
-8
doc/src/sgml/ref/vacuumdb.sgml
doc/src/sgml/ref/vacuumdb.sgml
+56
-52
No files found.
doc/src/sgml/ref/createdb.sgml
View file @
d55f8781
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/ref/createdb.sgml,v 1.1
0 2000/03/27 17:14:42 thomas
Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/ref/createdb.sgml,v 1.1
1 2000/11/11 23:01:38 petere
Exp $
Postgres documentation
-->
<refentry id="APP-CREATEDB" xreflabel="createdb">
<docinfo>
<date>2000-11-11</date>
</docinfo>
<refmeta>
<refentrytitle id="APP-CREATEDB-TITLE">
<application>createdb</application>
</refentrytitle>
<refentrytitle id="APP-CREATEDB-TITLE"><application>createdb</application></refentrytitle>
<manvolnum>1</manvolnum>
<refmiscinfo>Application</refmiscinfo>
</refmeta>
<refnamediv>
<refname>
<application>createdb</application>
</refname>
<refpurpose>
Create a new <productname>Postgres</productname> database
</refpurpose>
<refname>createdb</refname>
<refpurpose>Create a new <productname>Postgres</productname> database</refpurpose>
</refnamediv>
<refsynopsisdiv>
<
refsynopsisdivinfo
>
<
date>1999-11-07</date
>
</refsynopsisdivinfo
>
<synopsis
>
createdb [ <replaceable class="parameter">options</replaceable> ] <replaceable class="parameter">dbname</replaceable> [ <replaceable class="parameter">description</replaceable> ]
</synopsis>
<
cmdsynopsis
>
<
command>createdb</command
>
<arg rep="repeat"><replaceable>options</replaceable></arg
>
<arg choice="plain"><replaceable>dbname</replaceable></arg
>
<arg><replaceable>description</replaceable></arg>
</
cmd
synopsis>
<refsect2 id="R2-APP-CREATEDB-1">
<refsect2info>
<date>1999-11-07</date>
</refsect2info>
<title>
Inputs
</title>
...
...
@@ -99,9 +97,8 @@ createdb [ <replaceable class="parameter">options</replaceable> ] <replaceable c
<term>-D, --location <replaceable class="parameter">datadir</replaceable></term>
<listitem>
<para>
Specifies the alternate database location for this database installation.
This is the location of the installation system tables, not the location
of this specific database, which may be different.
Specifies the alternative database location. See also <xref
linkend="app-initlocation" endterm="app-initlocation-title">.
</para>
</listitem>
</varlistentry>
...
...
@@ -146,9 +143,6 @@ createdb [ <replaceable class="parameter">options</replaceable> ] <replaceable c
</refsect2>
<refsect2 id="R2-APP-CREATEDB-2">
<refsect2info>
<date>1999-11-07</date>
</refsect2info>
<title>
Outputs
</title>
...
...
@@ -189,9 +183,6 @@ createdb [ <replaceable class="parameter">options</replaceable> ] <replaceable c
</refsynopsisdiv>
<refsect1 id="R1-APP-CREATEDB-1">
<refsect1info>
<date>1999-11-07</date>
</refsect1info>
<title>
Description
</title>
...
...
@@ -215,36 +206,34 @@ createdb [ <replaceable class="parameter">options</replaceable> ] <replaceable c
</refsect1>
<refsect1 id="R1-APP-CREATEDB-2">
<refsect1info>
<date>1999-11-07</date>
</refsect1info>
<title>
Usage
</title>
<para>
To create the database <literal>demo</literal>
using the default database server:
<programlisting>
$ <userinput>createdb demo</userinput>
CREATE DATABASE
</programlisting>
<title>Usage</title>
<informalexample>
<para>
To create the database <literal>demo</literal> using the default
database server:
<screen>
<prompt>$ </prompt><userinput>createdb demo</userinput>
<computeroutput>CREATE DATABASE</computeroutput>
</screen>
The response is the same as you would have gotten from running the
<command>CREATE DATABASE</command> <acronym>SQL</acronym> command.
</para>
</informalexample>
<informalexample>
<para>
To create the database <literal>demo</literal>
using the postmaster on host eden, port 5000, using the <literal>LATIN1</literal>
encoding scheme with a look at the underlying query:
<programlisting
>
$
<userinput>createdb -p 5000 -h eden -E LATIN1 -e demo</userinput>
CREATE DATABASE "demo" WITH ENCODING = 'LATIN1'
CREATE DATABASE
</programlisting
>
To create the database <literal>demo</literal> using the
postmaster on host eden, port 5000, using the
<literal>LATIN1</literal> encoding scheme with a look at the
underlying query:
<screen
>
<prompt>$ </prompt>
<userinput>createdb -p 5000 -h eden -E LATIN1 -e demo</userinput>
<computeroutput>CREATE DATABASE "demo" WITH ENCODING = 'LATIN1'</computeroutput>
<computeroutput>CREATE DATABASE</computeroutput>
</screen
>
</para>
</informalexample>
</refsect1>
</refentry>
...
...
doc/src/sgml/ref/createlang.sgml
View file @
d55f8781
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/ref/createlang.sgml,v 1.
9 2000/11/04 21:09:41 momjian
Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/ref/createlang.sgml,v 1.
10 2000/11/11 23:01:38 petere
Exp $
Postgres documentation
-->
<refentry id="APP-CREATELANG">
<docinfo>
<date>2000-11-11</date>
</docinfo>
<refmeta>
<refentrytitle id="APP-CREATELANG-TITLE">
<application>createlang</application>
</refentrytitle>
<refentrytitle id="APP-CREATELANG-TITLE"><application>createlang</application></refentrytitle>
<manvolnum>1</manvolnum>
<refmiscinfo>Application</refmiscinfo>
</refmeta>
<refnamediv>
<refname id="createlang">
<application>createlang</application>
</refname>
<refpurpose>
Add a new programming language to a <productname>Postgres</productname> database
</refpurpose>
<refname id="createlang">createlang</refname>
<refpurpose>Add a new programming language to a <productname>Postgres</productname> database</refpurpose>
</refnamediv>
<refsynopsisdiv>
<refsynopsisdivinfo>
<date>1999-12-05</date>
</refsynopsisdivinfo>
<synopsis>
createlang [ <replaceable class="parameter">connection options</replaceable> ] [ <replaceable class="parameter">langname</replaceable> [ <replaceable class="parameter">dbname</replaceable> ] ]
createlang [ <replaceable class="parameter">connection options</replaceable> ] --list|-l [ <replaceable class="parameter">dbname</replaceable> ]
</synopsis>
<cmdsynopsis>
<command>createlang</command>
<arg rep="repeat"><replaceable>connection-options</replaceable></arg>
<arg><replaceable>langname</replaceable></arg>
<arg choice="plain"><replaceable>dbname</replaceable></arg>
<sbr>
<command>createlang</command>
<arg rep="repeat"><replaceable>connection-options</replaceable></arg>
<group choice="plain"><arg>--list</arg><arg>-l</arg></group>
<arg choice="plain"><replaceable>dbname</replaceable></arg>
</cmdsynopsis>
<refsect2 id="R2-APP-CREATELANG-1">
<title>
...
...
@@ -119,9 +124,6 @@ createlang [ <replaceable class="parameter">connection options</replaceable> ] -
</refsect2>
<refsect2 id="R2-APP-CREATELANG-2">
<refsect2info>
<date>1998-10-04</date>
</refsect2info>
<title>
Outputs
</title>
...
...
@@ -136,9 +138,6 @@ createlang [ <replaceable class="parameter">connection options</replaceable> ] -
</refsynopsisdiv>
<refsect1 id="R1-APP-CREATELANG-1">
<refsect1info>
<date>1999-12-05</date>
</refsect1info>
<title>
Description
</title>
...
...
@@ -171,15 +170,17 @@ createlang [ <replaceable class="parameter">connection options</replaceable> ] -
</refsect1>
<refsect1 id="R1-APP-CREATELANG-3">
<title>
Usage
<
/tit
le>
<title>
Usage</title>
<
informalexamp
le>
<para>
To install <literal>pltcl</literal>:
<programlisting>
$ createlang pltcl dbname
</programlisting>
To install <literal>pltcl</literal> into the database
<literal>template1</literal>:
<screen>
<prompt>$ </prompt><userinput>createlang pltcl template1</userinput>
</screen>
</para>
</informalexample>
</refsect1>
</refentry>
...
...
doc/src/sgml/ref/createuser.sgml
View file @
d55f8781
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/ref/createuser.sgml,v 1.
9 2000/03/27 17:14:42 thomas
Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/ref/createuser.sgml,v 1.
10 2000/11/11 23:01:40 petere
Exp $
Postgres documentation
-->
<refentry id="APP-CREATEUSER">
<docinfo>
<date>2000-11-11</date>
</docinfo>
<refmeta>
<refentrytitle id="APP-CREATEUSER-TITLE">
<application>createuser</application>
</refentrytitle>
<refentrytitle id="APP-CREATEUSER-TITLE"><application>createuser</application></refentrytitle>
<manvolnum>1</manvolnum>
<refmiscinfo>Application</refmiscinfo>
</refmeta>
<refnamediv>
<refname>
<application>createuser</application>
</refname>
<refpurpose>
Create a new <productname>Postgres</productname> user
</refpurpose>
<refname>createuser</refname>
<refpurpose>Create a new <productname>Postgres</productname> user</refpurpose>
</refnamediv>
<refsynopsisdiv>
<refsynopsisdivinfo>
<date>1999-11-07</date>
</refsynopsisdivinfo>
<synopsis>
createuser [ <replaceable class="parameter">options</replaceable> ] [ <replaceable class="parameter">username</replaceable> ]
</synopsis>
<refsynopsisdiv>
<cmdsynopsis>
<command>createuser</command>
<arg rep="repeat"><replaceable>options</replaceable></arg>
<arg><replaceable>username</replaceable></arg>
</cmdsynopsis>
<refsect2 id="R2-APP-CREATEUSER-1">
<refsect2info>
<date>1999-11-07</date>
</refsect2info>
<title>
Inputs
</title>
...
...
@@ -159,9 +155,6 @@ createuser [ <replaceable class="parameter">options</replaceable> ] [ <replaceab
</refsect2>
<refsect2 id="R2-APP-CREATEUSER-2">
<refsect2info>
<date>1999-11-07</date>
</refsect2info>
<title>
Outputs
</title>
...
...
@@ -195,9 +188,6 @@ createuser [ <replaceable class="parameter">options</replaceable> ] [ <replaceab
</refsynopsisdiv>
<refsect1 id="R1-APP-CREATEUSER-1">
<refsect1info>
<date>1998-11-07</date>
</refsect1info>
<title>
Description
</title>
...
...
@@ -226,35 +216,33 @@ createuser [ <replaceable class="parameter">options</replaceable> ] [ <replaceab
<refsect1 id="R1-APP-CREATEUSER-2">
<refsect1info>
<date>1999-11-07</date>
</refsect1info>
<title>
Usage
</title>
<para>
To create a user <literal>joe</literal>
on the default database server:
<title>Usage</title>
<programlisting>
$ <userinput>createuser joe</userinput>
Is the new user allowed to create databases? (y/n) <userinput>n</userinput>
Shall the new user be allowed to create more new users? (y/n) <userinput>n</userinput>
CREATE USER
</programlisting>
<informalexample>
<para>
To create a user <literal>joe</literal> on the default database
server:
<screen>
<prompt>$ </prompt><userinput>createuser joe</userinput>
<computeroutput>Is the new user allowed to create databases? (y/n) </computeroutput><userinput>n</userinput>
<computeroutput>Shall the new user be allowed to create more new users? (y/n) </computeroutput><userinput>n</userinput>
<computeroutput>CREATE USER</computeroutput>
</screen>
</para>
</informalexample>
<informalexample>
<para>
To create the same user <literal>joe</literal>
using the postmaster on host eden, port 5000, avoiding
the prompts and taking a look at the underlying query:
<programlisting>
$ <userinput>createuser -p 5000 -h eden -D -A -e joe</userinput>
CREATE USER "joe" NOCREATEDB NOCREATEUSER
CREATE USER
</programlisting>
To create the same user <literal>joe</literal> using the
postmaster on host eden, port 5000, avoiding the prompts and
taking a look at the underlying query:
<screen>
<prompt>$ </prompt><userinput>createuser -p 5000 -h eden -D -A -e joe</userinput>
<computeroutput>CREATE USER "joe" NOCREATEDB NOCREATEUSER</computeroutput>
<computeroutput>CREATE USER</computeroutput>
</screen>
</para>
</informalexample>
</refsect1>
</refentry>
...
...
doc/src/sgml/ref/drop_database.sgml
View file @
d55f8781
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/ref/drop_database.sgml,v 1.1
0 2000/10/05 19:48:18 momjian
Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/ref/drop_database.sgml,v 1.1
1 2000/11/11 23:01:43 petere
Exp $
Postgres documentation
-->
<refentry id="SQL-DROPDATABASE"
xreflabel="drop_database"
>
<refentry id="SQL-DROPDATABASE">
<refmeta>
<refentrytitle id="SQL-DROPDATABASE-TITLE">
DROP DATABASE
...
...
doc/src/sgml/ref/dropdb.sgml
View file @
d55f8781
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/ref/dropdb.sgml,v 1.
3 2000/03/27 17:14:43 thomas
Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/ref/dropdb.sgml,v 1.
4 2000/11/11 23:01:45 petere
Exp $
Postgres documentation
-->
<refentry id="APP-DROPDB">
<docinfo>
<date>2000-11-11</date>
</docinfo>
<refmeta>
<refentrytitle id="APP-DROPDB-TITLE">
<application>dropdb</application>
</refentrytitle>
<refentrytitle id="APP-DROPDB-TITLE"><application>dropdb</application></refentrytitle>
<manvolnum>1</manvolnum>
<refmiscinfo>Application</refmiscinfo>
</refmeta>
<refnamediv>
<refname>
<application>dropdb</application>
</refname>
<refpurpose>
Remove an existing <productname>Postgres</productname> database
</refpurpose>
<refname>dropdb</refname>
<refpurpose>Remove an existing <productname>Postgres</productname> database</refpurpose>
</refnamediv>
<refsynopsisdiv>
<refsynopsisdivinfo>
<date>1999-11-07</date>
</refsynopsisdivinfo>
<synopsis>
dropdb [ <replaceable class="parameter">options</replaceable> ] <replaceable class="parameter">dbname</replaceable>
</synopsis>
<cmdsynopsis>
<command>dropdb</command>
<arg rep="repeat"><replaceable>options</replaceable></arg>
<arg choice="plain"><replaceable>dbname</replaceable></arg>
</cmdsynopsis>
<refsect2 id="R2-APP-DROPDB-1">
<refsect2info>
<date>1999-11-07</date>
</refsect2info>
<title>
Inputs
</title>
...
...
@@ -124,9 +121,6 @@ dropdb [ <replaceable class="parameter">options</replaceable> ] <replaceable cla
<refsect2 id="R2-APP-DROPDB-2">
<refsect2info>
<date>1998-10-02</date>
</refsect2info>
<title>
Outputs
</title>
...
...
@@ -157,9 +151,6 @@ dropdb [ <replaceable class="parameter">options</replaceable> ] <replaceable cla
<refsect1 id="R1-APP-DROPDB-1">
<refsect1info>
<date>1998-10-02</date>
</refsect1info>
<title>
Description
</title>
...
...
@@ -185,32 +176,33 @@ dropdb [ <replaceable class="parameter">options</replaceable> ] <replaceable cla
</refsect1>
<refsect1 id="R1-APP-DROPDB-2">
<refsect1info>
<date>1999-11-07</date>
</refsect1info>
<title>
Usage
</title>
<title>Usage</title>
<informalexample>
<para>
To destroy the database <literal>demo</literal>
on the default
database server:
<programlisting
>
$
<userinput>dropdb demo</userinput>
DROP DATABASE
</programlisting
>
To destroy the database <literal>demo</literal> on the default
database server:
<screen
>
<prompt>$ </prompt>
<userinput>dropdb demo</userinput>
<computeroutput>DROP DATABASE</computeroutput>
</screen
>
</para>
</informalexample>
<informalexample>
<para>
To destroy the database <literal>demo</literal>
using the postmaster on host eden, port 5000, with verification
and a peek
at the underlying query:
<programlisting
>
$
<userinput>dropdb -p 5000 -h eden -i -e demo</userinput>
Database "demo" will be permanently deleted.
Are you sure? (y/n) <userinput>y</userinput>
DROP DATABASE "demo"
DROP DATABASE
</programlisting
>
To destroy the database <literal>demo</literal> using the
postmaster on host eden, port 5000, with verification and a peek
at the underlying query:
<screen
>
<prompt>$ </prompt>
<userinput>dropdb -p 5000 -h eden -i -e demo</userinput>
<computeroutput>
Database "demo" will be permanently deleted.
Are you sure? (y/n) <
/computeroutput><
userinput>y</userinput>
<computeroutput>
DROP DATABASE "demo"
DROP DATABASE
</computeroutput>
</screen
>
</para>
</informalexample>
</refsect1>
</refentry>
...
...
doc/src/sgml/ref/droplang.sgml
View file @
d55f8781
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/ref/droplang.sgml,v 1.
3 2000/03/27 17:14:43 thomas
Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/ref/droplang.sgml,v 1.
4 2000/11/11 23:01:45 petere
Exp $
Postgres documentation
-->
<refentry id="APP-DROPLANG">
<docinfo>
<date>2000-11-11</date>
</docinfo>
<refmeta>
<refentrytitle id="APP-DROPLANG-TITLE">
<application>droplang</application>
</refentrytitle>
<refentrytitle id="APP-DROPLANG-TITLE"><application>droplang</application></refentrytitle>
<manvolnum>1</manvolnum>
<refmiscinfo>Application</refmiscinfo>
</refmeta>
<refnamediv>
<refname id="droplang">
<application>droplang</application>
</refname>
<refpurpose>
Remove a programming language from a <productname>Postgres</productname> database
</refpurpose>
<refname id="droplang">droplang</refname>
<refpurpose>Remove a programming language from a <productname>Postgres</productname> database</refpurpose>
</refnamediv>
<refsynopsisdiv>
<refsynopsisdivinfo>
<date>1999-12-05</date>
</refsynopsisdivinfo>
<synopsis>
droplang [ <replaceable class="parameter">connection options</replaceable> ] [ <replaceable class="parameter">langname</replaceable> [ <replaceable class="parameter">dbname</replaceable> ] ]
droplang [ <replaceable class="parameter">connection options</replaceable> ] --list|-l
</synopsis>
<cmdsynopsis>
<command>droplang</command>
<arg rep="repeat"><replaceable>connection-options</replaceable></arg>
<arg><replaceable>langname</replaceable></arg>
<arg choice="plain"><replaceable>dbname</replaceable></arg>
<sbr>
<command>droplang</command>
<arg rep="repeat"><replaceable>connection-options</replaceable></arg>
<group choice="plain"><arg>--list</arg><arg>-l</arg></group>
<arg choice="plain"><replaceable>dbname</replaceable></arg>
</cmdsynopsis>
<refsect2 id="R2-APP-DROPLANG-1">
<title>
...
...
@@ -119,9 +124,6 @@ droplang [ <replaceable class="parameter">connection options</replaceable> ] --l
</refsect2>
<refsect2 id="R2-APP-DROPLANG-2">
<refsect2info>
<date>1999-12-05</date>
</refsect2info>
<title>
Outputs
</title>
...
...
@@ -136,9 +138,6 @@ droplang [ <replaceable class="parameter">connection options</replaceable> ] --l
</refsynopsisdiv>
<refsect1 id="R1-APP-DROPLANG-1">
<refsect1info>
<date>1999-12-05</date>
</refsect1info>
<title>
Description
</title>
...
...
@@ -172,15 +171,16 @@ droplang [ <replaceable class="parameter">connection options</replaceable> ] --l
</refsect1>
<refsect1 id="R1-APP-DROPLANG-3">
<title>
Usage
<
/tit
le>
<title>
Usage</title>
<
informalexamp
le>
<para>
To remove <literal>pltcl</literal>:
<
programlisting
>
$ droplang pltcl
</
programlisting
>
<
screen
>
<prompt>$ </prompt><userinput>droplang pltcl</userinput>
</
screen
>
</para>
</informalexample>
</refsect1>
</refentry>
...
...
doc/src/sgml/ref/dropuser.sgml
View file @
d55f8781
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/ref/dropuser.sgml,v 1.
4 2000/03/27 17:14:43 thomas
Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/ref/dropuser.sgml,v 1.
5 2000/11/11 23:01:45 petere
Exp $
Postgres documentation
-->
<refentry id="APP-DROPUSER">
<docinfo>
<date>2000-11-11</date>
</docinfo>
<refmeta>
<refentrytitle id="APP-DROPUSER-TITLE">
<application>dropuser</application>
</refentrytitle>
<refentrytitle id="APP-DROPUSER-TITLE"><application>dropuser</application></refentrytitle>
<manvolnum>1</manvolnum>
<refmiscinfo>Application</refmiscinfo>
</refmeta>
<refnamediv>
<refname>
<application>dropuser</application>
</refname>
<refpurpose>
Drops (removes) a <productname>Postgres</productname> user
</refpurpose>
<refname>dropuser</refname>
<refpurpose>Drops (removes) a <productname>Postgres</productname> user</refpurpose>
</refnamediv>
<refsynopsisdiv>
<refsynopsisdivinfo>
<date>1999-11-07</date>
</refsynopsisdivinfo>
<synopsis>
dropuser [ <replaceable class="parameter">options</replaceable> ] [ <replaceable class="parameter">username</replaceable> ]
</synopsis>
<cmdsynopsis>
<command>dropuser</command>
<arg rep="repeat"><replaceable>options</replaceable></arg>
<arg><replaceable>username</replaceable></arg>
</cmdsynopsis>
<refsect2 id="R2-APP-DROPUSER-1">
<refsect2info>
<date>1999-11-07</date>
</refsect2info>
<title>
Inputs
</title>
...
...
@@ -108,9 +105,6 @@ dropuser [ <replaceable class="parameter">options</replaceable> ] [ <replaceable
</refsect2>
<refsect2 id="R2-APP-DROPUSER-2">
<refsect2info>
<date>1999-11-07</date>
</refsect2info>
<title>
Outputs
</title>
...
...
@@ -145,9 +139,6 @@ dropuser [ <replaceable class="parameter">options</replaceable> ] [ <replaceable
</refsynopsisdiv>
<refsect1 id="R1-APP-DROPUSER-1">
<refsect1info>
<date>1999-11-07</date>
</refsect1info>
<title>
Description
</title>
...
...
@@ -176,33 +167,33 @@ dropuser [ <replaceable class="parameter">options</replaceable> ] [ <replaceable
</refsect1>
<refsect1 id="R1-APP-DROPUSER-2">
<refsect1info>
<date>1999-11-07</date>
</refsect1info>
<title>
Usage
</title>
<title>Usage</title>
<informalexample>
<para>
To remove user <literal>joe</literal>
from the default database
server:
<programlisting
>
$
<userinput>dropuser joe</userinput>
DROP USER
</programlisting
>
To remove user <literal>joe</literal> from the default database
server:
<screen
>
<prompt>$ </prompt>
<userinput>dropuser joe</userinput>
<computeroutput>DROP USER</computeroutput>
</screen
>
</para>
</informalexample>
<informalexample>
<para>
To remove user <literal>joe</literal>
using the postmaster on host eden, port 5000, with verification
and a peek at the underlying
query:
<programlisting
>
$
<userinput>dropuser -p 5000 -h eden -i -e joe</userinput>
User "joe" and any owned databases will be permanently deleted.
Are you sure? (y/n) <userinput>y</userinput>
DROP USER "joe"
DROP USER
</programlisting
>
To remove user <literal>joe</literal> using the postmaster on host
eden, port 5000, with verification and a peek at the underlying
query:
<screen
>
<prompt>$ </prompt>
<userinput>dropuser -p 5000 -h eden -i -e joe</userinput>
<computeroutput>
User "joe" and any owned databases will be permanently deleted.
Are you sure? (y/n) <
/computeroutput><
userinput>y</userinput>
<computeroutput>
DROP USER "joe"
DROP USER
</computeroutput>
</screen
>
</para>
</informalexample>
</refsect1>
</refentry>
...
...
doc/src/sgml/ref/initdb.sgml
View file @
d55f8781
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/ref/initdb.sgml,v 1.1
2 2000/10/05 19:48:18 momjian
Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/ref/initdb.sgml,v 1.1
3 2000/11/11 23:01:45 petere
Exp $
Postgres documentation
-->
<refentry id="APP-INITDB">
<docinfo>
<date>2000-11-11</date>
</docinfo>
<refmeta>
<refentrytitle id="APP-INITDB-TITLE">
<application>initdb</application>
</refentrytitle>
<refentrytitle id="APP-INITDB-TITLE"><application>initdb</application></refentrytitle>
<manvolnum>1</manvolnum>
<refmiscinfo>Application</refmiscinfo>
</refmeta>
<refnamediv>
<refname>
<application>initdb</application>
</refname>
<refpurpose>
Create a new <productname>Postgres</productname> database installation
</refpurpose>
<refname>initdb</refname>
<refpurpose>Create a new <productname>Postgres</productname> database cluster</refpurpose>
</refnamediv>
<refsynopsisdiv>
<refsynopsisdivinfo>
<date>1999-12-17</date>
</refsynopsisdivinfo>
<synopsis>
initdb [ --pgdata|-D <replaceable class="parameter">dbdir</replaceable> ]
[ --sysid|-i <replaceable class="parameter">sysid</replaceable> ]
[ --pwprompt|-W ]
[ --encoding|-E <replaceable class="parameter">encoding</replaceable> ]
[ --pglib|-L <replaceable class="parameter">libdir</replaceable> ]
[ --noclean | -n ] [ --debug | -d ] [ --template | -t ]
</synopsis>
<refsect2 id="R2-APP-INITDB-1">
<refsect2info>
<date>1999-11-17</date>
</refsect2info>
<cmdsynopsis>
<command>initdb</command>
<group choice="plain">
<arg>--pgdata </arg>
<arg>-D </arg>
<replaceable>dbdir</replaceable>
</group>
<group>
<arg>--sysid </arg>
<arg>-i </arg>
<replaceable>sysid</replaceable>
</group>
<group><arg>--pwprompt</arg><arg>-W</arg></group>
<group>
<arg>--encoding </arg>
<arg>-E </arg>
<replaceable>encoding</replaceable>
</group>
<arg>-L <replaceable>directory</replaceable></arg>
<group><arg>--noclean</arg><arg>-n</arg></group>
<group><arg>--debug</arg><arg>-d</arg></group>
<group><arg>--template</arg><arg>-t</arg></group>
</cmdsynopsis>
</refsynopsisdiv>
<refsect1 id="R1-APP-INITDB-1">
<title>
Inputs
Description
</title>
<para>
<application>initdb</application> creates a new
<productname>Postgres</productname> database cluster or system. A
database cluster is a collection of databases that are managed by a
single postmaster.
</para>
<para>
Creating a database system consists of creating the directories in which
the database data will live, generating the shared catalog tables
(tables that don't belong to any particular database), and
creating the <literal>template1</literal>
database. When you create a new database, everything in the
<literal>template1</literal> database is copied.
It contains catalog tables filled in for things like the
built-in types.
</para>
<para>
You must not execute <application>initdb</application> as root. This is
because you cannot run the database server as root either, but the
server needs to have access to the files <application>initdb</application>
creates. Furthermore, during the initialization phase, when there are no
users and no access controls installed, <productname>Postgres</productname>
will only connect with
the name of the current Unix user, so you must log in under the account
that will own the server process.
</para>
<para>
Although <application>initdb</application> will attempt to create the respective
data directory, chances are that it won't have the permission to do so. Thus
it is a good idea to create the data directory before running <application>initdb</application>
<emphasis>and</emphasis> to hand over the ownership of it to the database superuser.
</para>
<refsect2>
<title>Options</title>
<para>
<variablelist>
<varlistentry>
<term>--pgdata=<replaceable class="parameter">dbdir</replaceable></term>
<term>-D <replaceable class="parameter">dbdir</replaceable></term>
<term><envar>PGDATA</envar></term>
<listitem>
<para>
This option specifies where in the file system the database should be
...
...
@@ -64,7 +111,7 @@ initdb [ --pgdata|-D <replaceable class="parameter">dbdir</replaceable> ]
Selects the system id of the database superuser. This defaults to
the effective user id of the user running initdb. It is really
not important what the superuser's sysid is, but one might choose
to start the numbering at some number like
0 or
1.
to start the numbering at some number like 1.
</para>
</listitem>
</varlistentry>
...
...
@@ -104,18 +151,13 @@ initdb [ --pgdata|-D <replaceable class="parameter">dbdir</replaceable> ]
<variablelist>
<varlistentry>
<term>--pglib=<replaceable class="parameter">libdir</replaceable></term>
<term>-l <replaceable class="parameter">libdir</replaceable></term>
<term>-L <replaceable class="parameter">directory</replaceable></term>
<listitem>
<para>
initdb needs a few input files to initialize the database. This option
tells where to find them. You normally don't have to worry about this
since initdb knows about the most common installation layouts and will
find the files itself. You will be told if you need to specify their
location explicitly. If that happens, one of the files is called
<filename>global1.bki.source</filename> and is traditionally installed
along with the others in the library directory (e.g.,
<filename>/usr/local/pgsql/lib</filename>).
Specifies where initdb should find its input files to
initialize the database system. This is normally not
necessary. You will be told if you need to specify their
location explicitly.
</para>
</listitem>
</varlistentry>
...
...
@@ -174,65 +216,16 @@ initdb [ --pgdata|-D <replaceable class="parameter">dbdir</replaceable> ]
</para>
</refsect2>
</refsect1>
<refsect2 id="R2-APP-INITDB-2">
<refsect2info>
<date>1999-12-17</date>
</refsect2info>
<title>
Outputs
</title>
<para>
<application>initdb</application> will create files in the specified
data area which are the system tables and framework for a complete
installation.
</para>
</refsect2>
</refsynopsisdiv>
<refsect1 id="R1-APP-INITDB-1">
<refsect1info>
<date>1999-12-17</date>
</refsect1info>
<title>
Description
</title>
<para>
<application>initdb</application> creates a new
<productname>Postgres</productname> database system.
A database system is a
collection of databases that are all administered by the same Unix user
and managed by a single postmaster.
</para>
<para>
Creating a database system consists of creating the directories in which
the database data will live, generating the shared catalog tables
(tables that don't belong to any particular database), and
creating the <literal>template1</literal>
database. When you create a new database, everything in the
<literal>template1</literal> database is copied.
It contains catalog tables filled in for things like the
built-in types.
</para>
<para>
You must not execute <application>initdb</application> as root. This is
because you cannot run the database server as root either, but the
server needs to have access to the files <application>initdb</application>
creates. Furthermore, during the initialization phase, when there are no
users and no access controls installed, <productname>Postgres</productname>
will only connect with
the name of the current Unix user, so you must log in under the account
that will own the server process.
</para>
<refsect1>
<title>See also</title>
<para>
Although <application>initdb</application> will attempt to create the respective
data directory, chances are that it won't have the permission to do so. Thus
it is a good idea to create the data directory before running <application>initdb</application>
<emphasis>and</emphasis> to hand over the ownership of it to the database superuser.
</para>
<simpara>
<citetitle>PostgreSQL Administrator's Guide</citetitle>
</simpara>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
...
...
doc/src/sgml/ref/initlocation.sgml
View file @
d55f8781
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/ref/Attic/initlocation.sgml,v 1.1
0 2000/10/05 19:48:18 momjian
Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/ref/Attic/initlocation.sgml,v 1.1
1 2000/11/11 23:01:45 petere
Exp $
Postgres documentation
-->
<refentry id="APP-INITLOCATION">
<docinfo>
<date>2000-11-11</date>
</docinfo>
<refmeta>
<refentrytitle id="APP-INITLOCATION-TITLE">
<application>initlocation</application>
</refentrytitle>
<refentrytitle id="APP-INITLOCATION-TITLE"><application>initlocation</application></refentrytitle>
<manvolnum>1</manvolnum>
<refmiscinfo>Application</refmiscinfo>
</refmeta>
<refnamediv>
<refname>
<application>initlocation</application>
</refname>
<refpurpose>
Create a secondary <productname>Postgres</productname> database storage area
</refpurpose>
<refname>initlocation</refname>
<refpurpose>Create a secondary <productname>Postgres</productname> database storage area</refpurpose>
</refnamediv>
<refsynopsisdiv>
<refsynopsisdivinfo>
<date>2000-01-17</date>
</refsynopsisdivinfo>
<synopsis>
initlocation <replaceable class="parameter">directory</replaceable>
</synopsis>
<refsect2 id="R2-APP-INITLOCATION-1">
<refsect2info>
<date>1998-10-02</date>
</refsect2info>
<title>
Inputs
</title>
<para>
<variablelist>
<varlistentry>
<term><replaceable class="parameter">directory</replaceable></term>
<listitem>
<para>
Where in your Unix filesystem do you want alternate databases to go?
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect2>
<refsect2 id="R2-APP-INITLOCATION-2">
<refsect2info>
<date>1998-09-26</date>
</refsect2info>
<title>
Outputs
</title>
<para>
<application>initlocation</application> will create directories in
the specified place.
</para>
</refsect2>
<refsynopsisdiv>
<cmdsynopsis>
<command>initlocation</command>
<arg choice="plain"><replaceable>directory</replaceable></arg>
</cmdsynopsis>
</refsynopsisdiv>
<refsect1 id="R1-APP-INITLOCATION-1">
<refsect1info>
<date>1998-09-26</date>
</refsect1info>
<title>
Description
</title>
<title>Description</title>
<para>
<application>initlocation</application>
creates a new <productname>Postgres</productname> secondary database storage area.
...
...
@@ -85,33 +43,34 @@ initlocation <replaceable class="parameter">directory</replaceable>
</refsect1>
<refsect1 id="R1-APP-INITLOCATION-2">
<refsect1info>
<date>1998-09-26</date>
</refsect1info>
<title>
Usage
</title>
<title>Usage</title>
<informalexample>
<para>
To create a database in an alternate location, using an environment variable:
<programlisting>
$ export PGDATA2=/opt/postgres/data
</programlisting>
Start and stop postmaster so it sees the $PGDATA2 environment variable.
The system must be configured so the postmaster sees $PGDATA2 every time it
starts.
<programlisting>
$ initlocation PGDATA2
$ createdb -D 'PGDATA2' 'testdb'
</programlisting>
To create a database in an alternate location, using an
environment variable:
<screen>
<prompt>$ </prompt><userinput>export PGDATA2=/opt/postgres/data</userinput>
</screen>
Stop and start postmaster so it sees the <envar>PGDATA2</envar>
environment variable. The system must be configured so the
postmaster sees <envar>PGDATA2</envar> every time it starts. Finally:
<screen>
<prompt>$</prompt> <userinput>initlocation PGDATA2</userinput>
<prompt>$</prompt> <userinput>createdb -D PGDATA2 testdb</userinput>
</screen>
</para>
</informalexample>
<informalexample>
<para>
Alternatively, if you allow absolute paths you could write:
<
programlisting
>
$ initlocation /opt/postgres/data
$ createdb -D '/opt/postgres/data/testdb' testdb
</
programlisting
>
<
screen
>
<prompt>$</prompt> <userinput>initlocation /opt/postgres/data</userinput>
<prompt>$</prompt> <userinput>createdb -D /opt/postgres/data/testdb testdb</userinput>
</
screen
>
</para>
</informalexample>
</refsect1>
</refentry>
...
...
doc/src/sgml/ref/ipcclean.sgml
View file @
d55f8781
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/ref/Attic/ipcclean.sgml,v 1.
2 2000/10/05 19:48:18 momjian
Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/ref/Attic/ipcclean.sgml,v 1.
3 2000/11/11 23:01:45 petere
Exp $
Postgres documentation
-->
<refentry id="APP-IPCCLEAN">
<docinfo>
<date>2000-11-11</date>
</docinfo>
<refmeta>
<refentrytitle id="APP-IPCCLEAN-TITLE">
<application>ipcclean</application>
</refentrytitle>
<refentrytitle id="APP-IPCCLEAN-TITLE"><application>ipcclean</application></refentrytitle>
<manvolnum>1</manvolnum>
<refmiscinfo>Application</refmiscinfo>
</refmeta>
<refnamediv>
<refname>
<application>ipcclean</application>
</refname>
<refpurpose>
Clean up shared memory and semaphores from aborted backends
</refpurpose>
<refname>ipcclean</refname>
<refpurpose>Clean up shared memory and semaphores from aborted backends</refpurpose>
</refnamediv>
<refsynopsisdiv>
<refsynopsisdivinfo>
<date>1999-07-20</date>
</refsynopsisdivinfo>
<synopsis>
ipcclean
</synopsis>
<refsect2 id="R2-APP-IPCCLEAN-1">
<refsect2info>
<date>1999-07-20</date>
</refsect2info>
<title>
Inputs
</title>
<para>
None.
</para>
</refsect2>
<refsect2 id="R2-APP-IPCCLEAN-2">
<refsect2info>
<date>1999-07-30</date>
</refsect2info>
<title>
Outputs
</title>
<para>
None.
</para>
</refsect2>
<refsynopsisdiv>
<cmdsynopsis>
<command>ipcclean</command>
</cmdsynopsis>
</refsynopsisdiv>
<refsect1 id="R1-APP-IPCCLEAN-1">
<refsect1info>
<date>1999-07-20</date>
</refsect1info>
<title>
Description
</title>
<title>Description</title>
<para>
<application>ipcclean</application>
cleans up shared memory and semaphore space from aborted backends by
...
...
doc/src/sgml/ref/pg_config-ref.sgml
View file @
d55f8781
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/ref/pg_config-ref.sgml,v 1.
3 2000/10/20 13:44:39 thomas
Exp $ -->
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/ref/pg_config-ref.sgml,v 1.
4 2000/11/11 23:01:45 petere
Exp $ -->
<refentry id="app-pgconfig">
<docinfo>
<date>2000-11-11</date>
</docinfo>
<refmeta>
<refentrytitle id="app-pgconfig-title">pg_config</>
<refmiscinfo>Application</>
<refentrytitle id="app-pgconfig-title">pg_config</refentrytitle>
<manvolnum>1</manvolnum>
<refmiscinfo>Application</refmiscinfo>
</refmeta>
<refnamediv>
<refname>pg_config</>
<refpurpose>Provides information about the installed version of <productname>PostgreSQL</></>
<refname>pg_config</
refname
>
<refpurpose>Provides information about the installed version of <productname>PostgreSQL</></
refpurpose
>
</refnamediv>
<refsynopsisdiv>
<synopsis>
pg_config --bindir | --includedir | --libdir | --configure | --version
</synopsis>
<cmdsynopsis>
<command>pg_config</command>
<group choice="req" rep="repeat">
<arg>--bindir</arg>
<arg>--includedir</arg>
<arg>--libdir</arg>
<arg>--configure</arg>
<arg>--version</arg>
</group>
</cmdsynopsis>
</refsynopsisdiv>
<refsect1>
...
...
doc/src/sgml/ref/vacuumdb.sgml
View file @
d55f8781
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/ref/vacuumdb.sgml,v 1.
9 2000/05/02 20:02:03 thomas
Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/ref/vacuumdb.sgml,v 1.
10 2000/11/11 23:01:45 petere
Exp $
Postgres documentation
-->
<refentry id="APP-VACUUMDB">
<docinfo>
<date>2000-11-11</date>
</docinfo>
<refmeta>
<refentrytitle id="APP-VACUUMDB-TITLE">
<application>vacuumdb</application>
</refentrytitle>
<refentrytitle id="APP-VACUUMDB-TITLE"><application>vacuumdb</application></refentrytitle>
<manvolnum>1</manvolnum>
<refmiscinfo>Application</refmiscinfo>
</refmeta>
<refnamediv>
<refname id="vacuumdb">
<application>vacuumdb</application>
</refname>
<refpurpose>
Clean and analyze a <productname>Postgres</productname> database
</refpurpose>
<refname id="vacuumdb">vacuumdb</refname>
<refpurpose>Clean and analyze a <productname>Postgres</productname> database</refpurpose>
</refnamediv>
<refsynopsisdiv>
<refsynopsisdivinfo>
<date>1999-12-04</date>
</refsynopsisdivinfo>
<synopsis>
vacuumdb [ <replaceable class="parameter">options</replaceable> ] [ --analyze | -z ]
[ --alldb | -a ] [ --verbose | -v ]
[ --table '<replaceable class="parameter">table</replaceable> [ ( <replaceable class="parameter">column</replaceable> [,...] ) ]' ] [ [-d] <replaceable class="parameter">dbname</replaceable> ]
</synopsis>
<cmdsynopsis>
<command>vacuumdb</command>
<arg rep="repeat"><replaceable>connection-options</replaceable></arg>
<arg><arg>-d</arg> <replaceable>dbname</replaceable></arg>
<group><arg>--analyze</arg><arg>-z</arg></group>
<group><arg>--verbose</arg><arg>-v</arg></group>
<sbr>
<arg>--table '<replaceable>table</replaceable>
<arg>( <replaceable class="parameter">column</replaceable> [,...] )</arg>'
</arg>
<sbr>
<command>vacuumdb</command>
<arg rep="repeat"><replaceable>connection-options</replaceable></arg>
<group><arg>--all</arg><arg>-a</arg></group>
<group><arg>--analyze</arg><arg>-z</arg></group>
<group><arg>--verbose</arg><arg>-v</arg></group>
</cmdsynopsis>
<refsect2 id="R2-APP-VACUUMDB-1">
<refsect2info>
<date>1999-12-04</date>
</refsect2info>
<title>
Inputs
</title>
...
...
@@ -174,9 +181,6 @@ vacuumdb [ <replaceable class="parameter">options</replaceable> ] [ --analyze |
</refsect2>
<refsect2 id="R2-APP-VACUUMDB-2">
<refsect2info>
<date>1999-12-04</date>
</refsect2info>
<title>
Outputs
</title>
...
...
@@ -213,9 +217,6 @@ vacuumdb [ <replaceable class="parameter">options</replaceable> ] [ --analyze |
</refsynopsisdiv>
<refsect1 id="R1-APP-VACUUMDB-1">
<refsect1info>
<date>1999-12-04</date>
</refsect1info>
<title>
Description
</title>
...
...
@@ -243,34 +244,37 @@ vacuumdb [ <replaceable class="parameter">options</replaceable> ] [ --analyze |
</refsect1>
<refsect1 id="R1-APP-VACUUMDB-3">
<refsect1info>
<date>1998-10-04</date>
</refsect1info>
<title>
Usage
</title>
<title>Usage</title>
<informalexample>
<para>
To clean the database <literal>test</literal>:
<
programlisting
>
$ vacuumdb test
</
programlisting
>
<
screen
>
<prompt>$ </prompt><userinput>vacuumdb test</userinput>
</
screen
>
</para>
</informalexample>
<informalexample>
<para>
To analyze a database named <literal>bigdb</literal> for the optimizer:
<programlisting>
$ vacuumdb --analyze bigdb
</programlisting>
To analyze for the optimzer a database named
<literal>bigdb</literal>:
<screen>
<prompt>$ </prompt><userinput>vacuumdb --analyze bigdb</userinput>
</screen>
</para>
</informalexample>
<informalexample>
<para>
To analyze a single column <literal>bar</literal> in table <literal>foo</literal>
in a database named <literal>xyzzy</literal> for the optimizer:
<programlisting>
$ vacuumdb --analyze --verbose --table 'foo(bar)' xyzzy
</programlisting>
To analyze a single column <literal>bar</literal> in table
<literal>foo</literal> in a database named
<literal>xyzzy</literal> for the optimizer:
<screen>
<prompt>$ </prompt><userinput>vacuumdb --analyze --verbose --table 'foo(bar)' xyzzy</userinput>
</screen>
</para>
</informalexample>
</refsect1>
</refentry>
...
...
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