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

Re: possible bug...

From: "Prasad Duggineni" <pduggineni(at)prominencenet(dot)com>
To: <srikumar(dot)kareti(at)spanlink(dot)com>, <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: possible bug...
Date: 2005-09-22 14:41:01
Message-ID: 001a01c5bf83$a7dcbed0$520aa8c0@pduggineni (view raw or flat)
Thread:
Lists: pgsql-bugs
Try turning the enforcement mode off. 

----- Original Message ----- 
From: "SriKumar Kareti" <SriKumar(dot)Kareti(at)spanlink(dot)com>
To: <pgsql-bugs(at)postgresql(dot)org>
Sent: Wednesday, September 21, 2005 2:49 PM
Subject: [BUGS] possible bug...


> Hello!
> 
> I am trying to install postgres 8.0.3 from rpms.
> 
> [karetis(at)karetis ~]$ rpm -qa | grep postgres
> postgresql-8.0.3-1PGDG
> postgresql-server-8.0.3-1PGDG
> postgresql-libs-8.0.3-1PGDG
> [karetis(at)karetis ~]$
> 
> 
> After I install the RPMs, when I try to initdb I run into problems.
> I did set the data directory to belong to "postgres" and I am trying to
> initdb as "postgres". I have read through several postings and have not
> seen anyone have the same problem.
> 
> Thank you for your help.
> 
> SriKumar.
> 
> Here is the run:
> 
> bash-3.00$ ls -l /usr/local/
> total 88
> drwxr-xr-x  2 root     root     4096 Apr 28 00:09 bin
> drwxr-xr-x  2 root     root     4096 Apr 28 00:09 etc
> drwxr-xr-x  2 root     root     4096 Apr 28 00:09 games
> drwxr-xr-x  2 root     root     4096 Apr 28 00:09 include
> drwxr-xr-x  2 root     root     4096 Apr 28 00:09 lib
> drwxr-xr-x  2 root     root     4096 Apr 28 00:09 libexec
> drwxr-xr-x  3 root     root     4096 Sep 16 10:01 man
> drwxr-xr-x  3 postgres postgres 4096 Sep 20 09:21 pgsql
> drwxr-xr-x  2 root     root     4096 Apr 28 00:09 sbin
> drwxr-xr-x  4 root     root     4096 Sep 14 16:59 share
> drwxr-xr-x  2 root     root     4096 Apr 28 00:09 src
> bash-3.00$ ls -l /usr/local/pgsql/
> total 8
> drwx------  2 postgres postgres 4096 Sep 21 13:37 data
> bash-3.00$ whoami
> postgres
> bash-3.00$ initdb -D /usr/local/pgsql/data/
> The files belonging to this database system will be owned by user
> "postgres".
> This user must also own the server process.
> 
> The database cluster will be initialized with locale en_US.UTF-8.
> The default database encoding has accordingly been set to UNICODE.
> 
> initdb: directory "/usr/local/pgsql/data" exists but is not empty
> If you want to create a new database system, either remove or empty
> the directory "/usr/local/pgsql/data" or run initdb
> with an argument other than "/usr/local/pgsql/data".
> bash-3.00$ rm -R /usr/local/pgsql/data/*
> bash-3.00$ initdb -D /usr/local/pgsql/data/
> The files belonging to this database system will be owned by user
> "postgres".
> This user must also own the server process.
> 
> The database cluster will be initialized with locale en_US.UTF-8.
> The default database encoding has accordingly been set to UNICODE.
> 
> fixing permissions on existing directory /usr/local/pgsql/data ... ok
> creating directory /usr/local/pgsql/data/global ... ok
> creating directory /usr/local/pgsql/data/pg_xlog ... ok
> creating directory /usr/local/pgsql/data/pg_xlog/archive_status ... ok
> creating directory /usr/local/pgsql/data/pg_clog ... ok
> creating directory /usr/local/pgsql/data/pg_subtrans ... ok
> creating directory /usr/local/pgsql/data/base ... ok
> creating directory /usr/local/pgsql/data/base/1 ... ok
> creating directory /usr/local/pgsql/data/pg_tblspc ... ok
> selecting default max_connections ... 10
> selecting default shared_buffers ... 50
> creating configuration files ... ok
> creating template1 database in /usr/local/pgsql/data/base/1 ... child
> process exited with exit code 1
> initdb: removing contents of data directory "/usr/local/pgsql/data"
> bash-3.00$
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 3: Have you checked our extensive FAQ?
> 
>               http://www.postgresql.org/docs/faq
> 
>


In response to

Responses

pgsql-bugs by date

Next:From: Tom LaneDate: 2005-09-22 15:23:04
Subject: Re: possible bug...
Previous:From: Alvaro HerreraDate: 2005-09-22 14:40:13
Subject: Re: possible bug...

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