Thread: two bugs in 'initdb'

two bugs in 'initdb'

From
Sam
Date:
First bug:

Cygwin with pgsql version: 7.4.3 ( I have gcc and ipc-daemon2 in my cygwin)



When I run 'initdb -D database', it shows:

The database cluster will be initialized with locale C



creating directory database... ok

creating directory database/base... ok

creating directory database/global... ok

creating directory database/pg_xlog... ok

creating directory database/pg_clog... ok

selecting default max_connections... Signal 12

Signal 12

Signal 12

Signal 12

Signal 12

Signal 12

10

selecting default shared_buffers... Signal 12

Signal 12

Signal 12

Signal 12

Signal 12

Signal 12

Signal 12

Signal 12

Signal 12

Signal 12

Signal 12

50

creating configuration files... ok

creating template1 database in database/base/1... Signal 12



initdb: failed

initdb: removing data directory "database"









2. I used the 'initdb' in pgsql 7.4.3 which I downloaded from
postgresql.org:

It showed this:

The database cluster will be initialized with locale C.



creating directory database... ok

creating directory database/base... ok

creating directory database/global... ok

creating directory database/pg_xlog... ok

creating directory database/pg_clog... ok

selecting default max_connections... 10

selecting default shared_buffers... 50

creating configuration files... ok

creating template1 database in database/base/1... FATAL:  semctl(35, 16,
SETVAL,

 536) failed: Invalid argument



initdb: failed

initdb: removing data directory "database"