Bug 5262 - template database is not created when first install postgresql
Summary: template database is not created when first install postgresql
Status: CLOSED NEXTRELEASE
Alias: None
Product: Red Hat Raw Hide
Classification: Retired
Component: postgresql   
(Show other bugs)
Version: 1.0
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Trond Eivind Glomsrxd
QA Contact:
URL:
Whiteboard:
Keywords:
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:
Story Points: ---
Clone Of:
Environment:
Last Closed: 1999-09-21 19:51:28 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


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.