Skip site navigation (1) Skip section navigation (2)

Re: Getting started

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Donn Washburn <n5xwb(at)comcast(dot)net>
Cc: PostgreSQL Novice elist <pgsql-novice(at)postgresql(dot)org>
Subject: Re: Getting started
Date: 2010-03-26 19:29:20
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-novice
Donn Washburn <n5xwb(at)comcast(dot)net> writes:
> After looking at /etc/init.d/postgresql there is no mention to initdb
> other than under start) /usr/bin/initdb.  The script is a openSuSE 
> script that only has things like start), stop) and status) which are 
> recognized.

Mph.  So what you've got is one of the ones that automatically fires off
initdb if it doesn't see something that looks like a Postgres data
directory in the right place at "start" time.  This is nice in that
it saves one step for newbies, but I think most distros are migrating
to a separate "initdb" action for that.  There have been a couple of
well-publicized catastrophes wherein somebody's database got trashed by
a start script mistakenly firing up initdb, so people are now taking the
view that auto-initdb is more risk than it's worth.  I'd counsel against
using an auto-initdb start script if you have the database on any sort
of external storage (particularly NFS/SAN), but if it's on the same
drive as the OS then it's probably safe enough.  Just FYI.

> It is not the one that likely comes with postgres.

There isn't really a "standard" init script for Postgres; every distro
rolls their own.

			regards, tom lane

In response to


pgsql-novice by date

Next:From: Mladen GogalaDate: 2010-03-26 19:39:13
Subject: Re: Getting started
Previous:From: Donn WashburnDate: 2010-03-26 18:59:16
Subject: Re: Getting started

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group