[EMAIL PROTECTED] wrote:
>
> the shm facility uses files in /tmp for its communication
> (so much for memory speed). look in /tmp for the files created.
>
> I hestitate to recommend using strace on postmaster but it may provide
> some clues....
I'm afraid it didn't give me a clue but in case someone spots
something here it is:
Well /tmp looks ok to me, and doesn't contain any files
that are used for the communication before I try to start it.
[root@machine /tmp]# ls -al
total 12
drwxrwxrwx 3 root root 4096 Mar 30 17:08 .
drwxr-xr-x 21 root root 4096 Mar 29 11:44 ..
drwxrwxrwt 2 100 101 4096 Nov 28 22:08 .font-unix
I try to start postgres, using strace..and get:
<SNIP>
socket(PF_UNIX, SOCK_STREAM, 0) = 3
setsockopt(3, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
bind(3, {sun_family=AF_UNIX, sun_path="/tmp/.s.PGSQL.5432"}, 20) = 0
listen(3, 128) = 0
chmod("/tmp/.s.PGSQL.5432", 0777) = 0
shmget(5432010, 120, IPC_CREAT|0x1c0|0600) = -1 EACCES (Permission
denied)
<SNIP>
write(2, "IpcMemoryCreate: shmget failed ("..., 88IpcMemoryCreate:
shmget failed (Permission denied) key=5432010, size=120, permission=700)
= 88
write(2, "\n", 1
) = 1
shmget(5432010, 120, 0) = 3201
shmat(3201, 0, 0) = -1 EACCES (Permission denied)
write(2, "IpcMemoryAttach: shmat failed (P"..., 57IpcMemoryAttach: shmat
failed (Permission denied) id=3201) = 57
write(2, "\n", 1
) = 1
write(2, "FATAL 1: AttachSLockMemory: cou"..., 54FATAL 1:
AttachSLockMemory: could not attach segment
) = 54
unlink("/tmp/.s.PGSQL.5432") = 0
_exit(0)