From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Alexander Jerusalem <ajeru(at)gmx(dot)net> |
Cc: | Justin Clift <aa2(at)bigpond(dot)net(dot)au>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: Re: postgres memory management |
Date: | 2001-01-23 16:47:51 |
Message-ID: | 6566.980268471@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers pgsql-jdbc |
Alexander Jerusalem <ajeru(at)gmx(dot)net> writes:
> you are right, I have the same problem on RedHat. After I inserted -e it
> works so far. But there's something else that seems strange to me I'm not
> quite sure if I'm reading this right since I understand only half of what
> happens in this script. After the comment that says "Don't do anything if
> process still running..." on line there is the following sequence of lines:
> ps hj$ipcs_pid >/dev/null 2>&1
> if [ $? -eq 0 ]; then
> echo "skipped...."
> As I understand it the if statement tests the output of the previous ps
> statement. The strange thing is that the variable $ipcs_pid is never used
> anywhere before this line, so I think it's always null (or whatever this
> scripting language defaults to). There are three other variables ipcs_id,
> ipcs_cpid and ipcs_lpid but no ipcs_pid. If I'm right here, it seems that
> this script does effectively nothing in terms of shared memory.
I think you are right --- the Linux portion of this script is broken.
Aside from the bogus variable, the awk call at the top of the loop is
wrong (printf has three arguments and only two percents). Given those
two typos, there are probably more.
Feel free to submit a patch to make it actually work ...
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Tim Barnard | 2001-01-23 16:55:07 | Re: Data entry screen building utilities |
Previous Message | Nelio Alves Pereira Filho | 2001-01-23 16:44:22 | System Tables ER / ALTER COLUMN |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2001-01-23 16:57:52 | Re: Looking for info on Solaris 7 (SPARC) specific considerations |
Previous Message | Oliver Elphick | 2001-01-23 16:40:10 | WAL documentation |
From | Date | Subject | |
---|---|---|---|
Next Message | Kogotkov, Vyacheslav | 2001-01-23 16:48:25 | FW: JDBC2 question -- can't find files needed |
Previous Message | Ramesh H R | 2001-01-23 11:36:10 | postgresql.largeobject package |