Entropy.ch Discussion Forums Forum Index Entropy.ch Discussion Forums
Discussion forums about Mac OS X software development.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

PostgreSQL on Panther
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Entropy.ch Discussion Forums Forum Index -> PostgreSQL on Mac OS X
View previous topic :: View next topic  
Author Message
liyanage
Site Admin


Joined: 22 May 2003
Posts: 1104
Location: Zurich, Switzerland

PostPosted: Mon Nov 03, 2003 10:48    Post subject: PostgreSQL on Panther Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
goynang
Guest





PostPosted: Mon Nov 03, 2003 21:20    Post subject: Reply with quote

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

PostPosted: Tue Nov 04, 2003 0:55    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
markd



Joined: 04 Nov 2003
Posts: 2
Location: Pittsburgh, PA. USA

PostPosted: Tue Nov 04, 2003 22:47    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
liyanage
Site Admin


Joined: 22 May 2003
Posts: 1104
Location: Zurich, Switzerland

PostPosted: Tue Nov 04, 2003 23:29    Post subject: Reply with quote

Hi Mark Smile

Yeah, they quickies look *extremely* useful.

Didn't realize who you are or whose website it is, I saw your book presented at WWDC Smile
Back to top
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
markd



Joined: 04 Nov 2003
Posts: 2
Location: Pittsburgh, PA. USA

PostPosted: Tue Nov 04, 2003 23:45    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Paulatre
Guest





PostPosted: Fri Dec 05, 2003 13:44    Post subject: plpgsql language (?) Reply with quote

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

PostPosted: Fri Dec 05, 2003 18:32    Post subject: Reply with quote

hmm no idea... You could try it and let us know here Smile
Back to top
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
ejoe
Guest





PostPosted: Wed Dec 17, 2003 1:56    Post subject: Worked Fine Under Panther 7C107 Reply with quote

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! Wink

Thanks for all your incredible efforts to bring great OSS to MacOSX!!!

Joe Pezzillo
Boulder, Colorado USA
Back to top
ejoe
Guest





PostPosted: Wed Dec 17, 2003 1:58    Post subject: Clarification: "It" being PostgreSQL Reply with quote

Just to clarify, PostgreSQL is working fine under Panther...
Back to top
fugaz
Guest





PostPosted: Sun Dec 28, 2003 23:49    Post subject: Re: plpgsql language (?) Reply with quote

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





PostPosted: Tue Jan 06, 2004 18:09    Post subject: accepting network connections Reply with quote

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





PostPosted: Fri Jan 16, 2004 19:05    Post subject: Re: PostgreSQL on Panther Reply with quote

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

PostPosted: Sat Jan 17, 2004 2:33    Post subject: hmm Reply with quote

SystemTuning is basically an empty file on my system also. It looks like this:
Code:

#!/bin/sh

exit 0

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
View user's profile Send private message
johnb
Guest





PostPosted: Sat Jan 17, 2004 2:59    Post subject: Re: hmm Reply with quote

keath wrote:
SystemTuning is basically an empty file on my system also. It looks like this:
Code:

#!/bin/sh

exit 0

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
Display posts from previous:   
Post new topic   Reply to topic    Entropy.ch Discussion Forums Forum Index -> PostgreSQL on Mac OS X All times are GMT + 1 Hour
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group