Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 5262 - template database is not created when first install postgresql
Summary: template database is not created when first install postgresql
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Red Hat Raw Hide
Classification: Retired
Component: postgresql
Version: 1.0
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Trond Eivind Glomsrxd
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 1999-09-21 00:13 UTC by carenas
Modified: 2008-05-01 15:37 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 1999-09-21 19:51:28 UTC


Attachments (Terms of Use)

Description carenas 1999-09-21 00:13:05 UTC
template database should be created if there is no data.

%post server
/sbin/ldconfig
if [ ! -d /var/lib/pgsql/data ];
  su -c "initdb --pglib=/usr/lib/pgsql
--pgdata=/var/lib/pgsql" postgres 2>&1
fi

will be all what is needed for keeping the init error away

Comment 1 Jeff Johnson 1999-09-21 19:51:59 UTC
Fixed (by creating/converting database when starting postmaster) in
postgres-6.5.1-0.8 and later.


Note You need to log in before you can comment on or make changes to this bug.