Skip site navigation (1) Skip section navigation (2)

Re: BUG #5365: pg_ctl start gives error

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Savita <savita(dot)halli(at)gmail(dot)com>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #5365: pg_ctl start gives error
Date: 2010-03-11 19:30:28
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugs
Robert Haas <robertmhaas(at)gmail(dot)com> writes:
> On Mon, Mar 8, 2010 at 5:19 AM, Savita <savita(dot)halli(at)gmail(dot)com> wrote:
>> I have installed postgres in Solaris machine and trying to start the service
>> and it fails with follwoing error
>> FATAL: syntax error in file "../../pgsql/data/postgresql.conf" line 107,
>> near token "MB"

>> Is it something to do with version of SunOS?

> I doubt it.  postgresql.conf should be parsed identically on any
> platform, I would think.

The error message seems consistent with what would happen if you had, say,

	shared_buffers = 100 MB

instead of the correct

	shared_buffers = 100MB

but the former should fail the same way on any machine.

Scott Mead's suggestion of a PG version discrepancy is a possibility
though.  Old PG versions might see 100MB as two tokens, which'd give
rise to that error.

The other thing that strikes me while I'm looking at it is that a
relative path to postgresql.conf seems like a great way to shoot
yourself in the foot, because the wrong things will happen if you try to
start the postmaster from the wrong directory.  A good rule of thumb is
to always use an absolute path for -D or $PGDATA.  In this case the
relative path might be a cause of picking up the wrong config file.

			regards, tom lane

In response to

pgsql-bugs by date

Next:From: Bruce MomjianDate: 2010-03-11 23:38:49
Subject: Re: BUG #5370: Shortcut for currently connected users
Previous:From: Scott MeadDate: 2010-03-11 19:17:53
Subject: Re: BUG #5365: pg_ctl start gives error

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group