When I tried to start postmaster as:
postmaster -d 3 -B 1024
I got a core dump:
FindExec: searching PATH ...
ValidateBinary: can't stat "/home/httpd/html/users/t-ishii/bin/postgres"
ValidateBinary: can't stat "/usr/local/bin/postgres"
ValidateBinary: can't stat "/bin/postgres"
ValidateBinary: can't stat "/usr/bin/postgres"
ValidateBinary: can't stat "/home/httpd/html/users/t-ishii/src/pgsql/postgresql-6.4.2/src/backend./postgres"
ValidateBinary: can't stat "/usr/X11R6/bin/postgres"
FindExec: found "/usr/local/pgsql/bin/postgres" using PATH
binding ShmemCreate(key=52e2c1, size=9859300)
ERROR: InitMultiLocks: couldnt initialize lock table
Quit (core dumped)
InitMultiLocks calls LockMethodTableInit. So I inspected
LockMethodTableInit and found that it returned
lockMethodTable->ctl->lockmethod with value 0 which made
InitMultiLocks judge something went wrong.
Note that ipcs -m -l sais:
max number of segments = 128
max seg size (kbytes) = 16384
max total shared memory (kbytes) = 16777216
min seg size (bytes) = 1
So there should be enogh shared mems. Also note that -B 1023 runs
fine, but -B 1024 does not.
Any idea?
This is 6.4.2 + Tom Lanes fix running Linux/Mips (kernel 2.0.33) with
32MB memories.
--
Tatsuo Ishii