1

I instal pg server and tools using standard package from official site( MacOs ).

Everything worked fine, until I changed a configure file - postgresql.conf.

shared_buffers = 32MB To shared_buffers = 128MB

Then, when I restarted the system, server does not starts.

Why it's happens?

May be because file owner is changed? Was postgres - became 'root'. If Yes, how can I fix it?

5
  • Most probably it's the file ownership. Make sure the postgres user is allowed to read it. AFAIK MacOS is "just" a unix so using chown should do the job. Commented Apr 24, 2012 at 15:35
  • I change file owner/group/permission, but server do not want to start(. If i tried to start server from terminal i get next message 'code' $ /Library/PostgreSQL/9.1/bin/postgres postgres does not know where to find the server configuration file. You must specify the --config-file or -D invocation option or set the PGDATA environment variable. 'code' Commented Apr 24, 2012 at 16:21
  • Then specify the location as mentioned in the message. Commented Apr 24, 2012 at 16:33
  • At last server started) The problem was not only in permissions of .conf file, but in size of shared_buffers too. In consol I found a message from server 'could not create shared memory segment invalid argument postgres' when it try to start. So I decide to commented this param in .conf file - and server started working. So I will reed tutorial about cash size more carefully, before change some params :). If any body gives additional informations about cache size of postgre server, and how it affect to speed of working, I will be very grateful. Thanks Commented Apr 24, 2012 at 18:41
  • 128MB should not be any problem for the size of the shared buffers. There must something else going wrong Commented Apr 24, 2012 at 19:12

1 Answer 1

3

You probably need to adjust your kernel settings to match the new size you requested.

Sign up to request clarification or add additional context in comments.

2 Comments

Thanks, I will study this article. But if I will return the value of params - server still does not start.
For 128MB shared buffers, a change in the kernel parameters should not be necessary

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.