Re: postgres memory management - Mailing list pgsql-hackers

From Justin Clift
Subject Re: postgres memory management
Date
Msg-id 3A6CE68E.91797F26@bigpond.net.au
Whole thread Raw
In response to Re: [GENERAL] postgres memory management  (Alexander Jerusalem <ajeru@gmx.net>)
List pgsql-hackers
Hi Alexander,

I've noticed that the PG 7.03 ipcclean script uses "ps x | grep -s
'postmaster'" to determine if a postmaster daemon is still running,
which at least for Mandrake Linux 7.2 doesn't work as expected.  With
this version of linux, the ps & grep combination will find itself and
then ipcclean will complain about an existing postmaster.

I found the solution to this being to edit the ipcclean script and
change the "ps x | grep -s 'postmaster'" part to "ps -e | grep -s
'postmaster'".  This then works correctly with Mandrake 7.2.

Regards and best wishes,

Justin Clift

<snip>
>
> Oddly, when I try to run ipcclean a second time, it says: ipcclean: You
> still have a postmaster running. Which is not the case as ps -e proves.
>
> Alexander Jerusalem
> ajeru@gmx.net
> vknn

pgsql-hackers by date:

Previous
From: Alexander Jerusalem
Date:
Subject: Re: Re: postgres memory management
Next
From: Tom Lane
Date:
Subject: Re: This script will crash the connection