Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
37e55354
Commit
37e55354
authored
23 years ago
by
Bruce Momjian
Browse files
Options
Downloads
Patches
Plain Diff
Add mention of init -W flag for security.
parent
220d0068
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/src/sgml/runtime.sgml
+31
-18
31 additions, 18 deletions
doc/src/sgml/runtime.sgml
with
31 additions
and
18 deletions
doc/src/sgml/runtime.sgml
+
31
−
18
View file @
37e55354
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.9
7
2001/11/2
1
0
6:09:45 thomas
Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.9
8
2001/11/2
8
0
0:13:30 momjian
Exp $
-->
<Chapter Id="runtime">
...
...
@@ -51,28 +51,28 @@ $Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.97 2001/11/21 06:09:45 tho
<para>
Before you can do anything, you must initialize a database storage
area on disk. We call this a <firstterm>database
cluster</firstterm>.
(<acronym>SQL</acronym> speaks of a catalog
cluster instead.) A
database cluster is a collection of databases
that will be accessible
through a single instance of a running
database server. After
initialization, a database cluster will
contain one database named
<literal>template1</literal>. As the
name suggests, this will be used
as a template for any subsequently
created database; it should not be
used for actual work.
area on disk. We call this a <firstterm>database
cluster</firstterm>.
(<acronym>SQL</acronym> speaks of a catalog
cluster instead.) A
database cluster is a collection of databases
that will be accessible
through a single instance of a running
database server. After
initialization, a database cluster will
contain one database named
<literal>template1</literal>. As the
name suggests, this will be used
as a template for any subsequently
created database; it should not be
used for actual work.
</para>
<para>
In file system terms, a database cluster will be a single directory
under which all data will be stored. We call this the
<firstterm>data
directory</firstterm> or <firstterm>data
area</firstterm>. It is
completely up to you where you choose to
store your data, there is no
default, although locations such as
under which all data will be stored. We call this the
<firstterm>data
directory</firstterm> or <firstterm>data
area</firstterm>. It is
completely up to you where you choose to
store your data, there is no
default, although locations such as
<filename>/usr/local/pgsql/data</filename> or
<filename>/var/lib/pgsql/data</filename> are popular. To initialize
a
database cluster, use the command <command>initdb</command>,
which is
installed with <productname>PostgreSQL</productname>. The
desired
file system location of your database system is indicated
by the
<option>-D</option> option, for example
<filename>/var/lib/pgsql/data</filename> are popular. To initialize
a
database cluster, use the command <command>initdb</command>,
which is
installed with <productname>PostgreSQL</productname>. The
desired
file system location of your database system is indicated
by the
<option>-D</option> option, for example
<screen>
> <userinput>initdb -D /usr/local/pgsql/data</userinput>
</screen>
...
...
@@ -118,6 +118,19 @@ postgres> <userinput>initdb -D /usr/local/pgsql/data</userinput>
permissions from everyone but the <productname>PostgreSQL</productname> user account.
</para>
<para>
However, while the directory contents are secure, the default
<filename>pg_hba.conf</filename> authentication of
<literal>trust</literal> allows any local user to become the
superuser and connect to the database. If you don't trust your local
users, we recommend you use the <command>initdb</command> option
<option>-W</option> or <option>--pwprompt</option> to assign a
password to the superuser and modify your
<filename>pg_hba.conf</filename> accordingly. (Another option:
Your operating system may support <literal>ident</literal> for
local connections.)
</para>
<para>
<indexterm><primary>LC_COLLATE</></>
One surprise you might encounter while running <command>initdb</command> is
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment