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
37e55354
Commit
37e55354
authored
Nov 28, 2001
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add mention of init -W flag for security.
parent
220d0068
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
18 deletions
+31
-18
doc/src/sgml/runtime.sgml
doc/src/sgml/runtime.sgml
+31
-18
No files found.
doc/src/sgml/runtime.sgml
View file @
37e55354
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.9
7 2001/11/21 06:09:45 thomas
Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.9
8 2001/11/28 00: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
th
at 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
th
rough 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 t
o
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 n
o
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
...
...
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