| View previous topic :: View next topic |
| Author |
Message |
liyanage Site Admin

Joined: 22 May 2003 Posts: 1104 Location: Zurich, Switzerland
|
Posted: Mon Nov 03, 2003 10:48 Post subject: PostgreSQL on Panther |
|
|
It seems that on Panther some changes to a system configuration file are required. I found this information at http://borkware.com/quickies/one?topic=Unix .
In the file /etc/rc, look for lines similar to the following and adjust the values accordingly:
sysctl -w kern.sysv.shmmax=167772160
sysctl -w kern.sysv.shmmin=1
sysctl -w kern.sysv.shmmni=32
sysctl -w kern.sysv.shmseg=8
sysctl -w kern.sysv.shmall=65536
Save and reboot the machine.
Last edited by liyanage on Sun May 28, 2006 15:45; edited 1 time in total |
|
| Back to top |
|
 |
goynang Guest
|
Posted: Mon Nov 03, 2003 21:20 Post subject: |
|
|
I've got your postgres.pkg running on my copy of panther and haven't noticed any problems - although I haven't tested that much yet.
My motto tends to be "If it ain't broke don't fix it" - so I'd like to know what effects I'm likely to see by not making this change - what will go wrong?
Cheers. |
|
| Back to top |
|
 |
liyanage Site Admin

Joined: 22 May 2003 Posts: 1104 Location: Zurich, Switzerland
|
Posted: Tue Nov 04, 2003 0:55 Post subject: |
|
|
Interesting... Clearly, if it works for you, don't mess with these settings.
On my machine, it wouldn't even start up, with corresponding error messages in the log file. |
|
| Back to top |
|
 |
markd
Joined: 04 Nov 2003 Posts: 2 Location: Pittsburgh, PA. USA
|
Posted: Tue Nov 04, 2003 22:47 Post subject: |
|
|
Yeah, you'll need to add those if you have any configuration parameters that increase the shared memory usage, like shared_buffers. In general, upping those kernel parameters won't harm anything - they're just limits to what programs can allocate. By giving yourself a lot of headroom, you can play around with configuration tuning of the database without a lot of hassle.
Glad our quickies were of use to you. _________________ co-author of Core Mac OS X and Unix Programming |
|
| Back to top |
|
 |
liyanage Site Admin

Joined: 22 May 2003 Posts: 1104 Location: Zurich, Switzerland
|
Posted: Tue Nov 04, 2003 23:29 Post subject: |
|
|
Hi Mark
Yeah, they quickies look *extremely* useful.
Didn't realize who you are or whose website it is, I saw your book presented at WWDC  |
|
| Back to top |
|
 |
markd
Joined: 04 Nov 2003 Posts: 2 Location: Pittsburgh, PA. USA
|
Posted: Tue Nov 04, 2003 23:45 Post subject: |
|
|
Excellent! I hope I didn't make too much of a fool of myself :-) I got a bit punchy in the booth by wednesday. _________________ co-author of Core Mac OS X and Unix Programming |
|
| Back to top |
|
 |
Paulatre Guest
|
Posted: Fri Dec 05, 2003 13:44 Post subject: plpgsql language (?) |
|
|
on previous version of your installer I couldn't get the PLpgSQL language to run, was giving me a an .so object file error, had finally to fix it manually and recompile the whole package again...
has it been fixed in this version? |
|
| Back to top |
|
 |
liyanage Site Admin

Joined: 22 May 2003 Posts: 1104 Location: Zurich, Switzerland
|
Posted: Fri Dec 05, 2003 18:32 Post subject: |
|
|
hmm no idea... You could try it and let us know here  |
|
| Back to top |
|
 |
ejoe Guest
|
Posted: Wed Dec 17, 2003 1:56 Post subject: Worked Fine Under Panther 7C107 |
|
|
Hi Mark, all,
We met at WWDC, I was the guy who hassled you by IRC for help one time about MySQL under 10.1.5 (or some similar silly reason) when I was at my wit's end (which isn't necessarily hard to get to...)
Anyway, I thought I'd chime in to say that it looks like it is working just fine under Build 7C107.
Thanks! Now if you could just make an easy installer for GRASS with MapServer support!
Thanks for all your incredible efforts to bring great OSS to MacOSX!!!
Joe Pezzillo
Boulder, Colorado USA |
|
| Back to top |
|
 |
ejoe Guest
|
Posted: Wed Dec 17, 2003 1:58 Post subject: Clarification: "It" being PostgreSQL |
|
|
| Just to clarify, PostgreSQL is working fine under Panther... |
|
| Back to top |
|
 |
fugaz Guest
|
Posted: Sun Dec 28, 2003 23:49 Post subject: Re: plpgsql language (?) |
|
|
| Paulatre wrote: | on previous version of your installer I couldn't get the PLpgSQL language to run, was giving me a an .so object file error, had finally to fix it manually and recompile the whole package again...
has it been fixed in this version? |
well, I just built PostgreSQL from sources (v7.4) and plpgsql is there without needs to touch anything.
So expect that in Marc's next version.
ciao,
davide |
|
| Back to top |
|
 |
jeffs Guest
|
Posted: Tue Jan 06, 2004 18:09 Post subject: accepting network connections |
|
|
I found that enabling network connectivity was just a matter of editing a file and restarting
1) become superuser and open the file /usr/local/pgsql/data/postgresql.conf in an editor (like vi)
2) find the line (near the beginning) which reads:
#tcpip_socket = false
3) uncomment it by removing the leading "#"
4) change "false" to "true" so the line looks like this:
tcpip_socket = true
5) save the file and restart
jeffs |
|
| Back to top |
|
 |
johnb Guest
|
Posted: Fri Jan 16, 2004 19:05 Post subject: Re: PostgreSQL on Panther |
|
|
| liyanage wrote: | It seems that on Panther some changes to a system configuration file are required. I found this information at http://borkware.com/quickies/one?topic=Unix .
In the file /etc/rc, look for lines similar to the following and adjust the values accordingly:
sysctl -w kern.sysv.shmmax=167772160
sysctl -w kern.sysv.shmmin=1
sysctl -w kern.sysv.shmmni=32
sysctl -w kern.sysv.shmseg=8
sysctl -w kern.sysv.shmall=65536
Save and reboot the machine. |
I am a Unix newbie (graphic designer trying to better understand his machine. My Unix experience is limited to reading Unix for MAC OSX by Matisse Enzer) and have a question about this adjustment. I cannot find /etc/rc so I went to /System/Library/StartupItems/SystemTuning/SystemTuning as Quickies for Unix (http://borkware.com/quickies/one?topic=Unix) suggested. I opened the file (SystemTuning) in Vi and the file was empty. I apologize because as a Unix newbie I am sure I am doing something dumb, but do you have any suggestions?
One more dumb question, your PostgreSQL package (http://www.entropy.ch/software/macosx/postgresql/)- do I install by double clicking or is this something I need to do via the Terminal?
I am installing PostgreSQL in order to run SQL-Ledger (http://www.sql-ledger.com/) .
Thanks in advance.
John
{running 10.3.2}[/url] |
|
| Back to top |
|
 |
keath
Joined: 21 Jun 2003 Posts: 114 Location: Leawood, KS
|
Posted: Sat Jan 17, 2004 2:33 Post subject: hmm |
|
|
SystemTuning is basically an empty file on my system also. It looks like this:
I'm sure that's normal. I think you should have a 'rc' file in /etc though. Navigate to the etc directory in the terminal like so: 'cd /etc'
Then type 'ls -l rc'
My system shows:
-r--r--r-- 1 root wheel 7.6k Nov 29 19:33 rc
Marc's postgres package is a double click install. Works great!
I should add that Postgres has worked fine for me without changes to the rc file. It is likely you won't see any problems either. |
|
| Back to top |
|
 |
johnb Guest
|
Posted: Sat Jan 17, 2004 2:59 Post subject: Re: hmm |
|
|
| keath wrote: | SystemTuning is basically an empty file on my system also. It looks like this:
I'm sure that's normal. I think you should have a 'rc' file in /etc though. Navigate to the etc directory in the terminal like so: 'cd /etc'
Then type 'ls -l rc'
My system shows:
-r--r--r-- 1 root wheel 7.6k Nov 29 19:33 rc
Marc's postgres package is a double click install. Works great!
I should add that Postgres has worked fine for me without changes to the rc file. It is likely you won't see any problems either. |
Thanks Keath, I appreciate the help. |
|
| Back to top |
|
 |
|