Unix Technical Forum

BUG #4006: pg_ctl assumes that all config files lie in data_directory

This is a discussion on BUG #4006: pg_ctl assumes that all config files lie in data_directory within the pgsql Bugs forums, part of the PostgreSQL category; --> The following bug has been logged online: Bug reference: 4006 Logged by: David Schweikert Email address: david@schweikert.ch PostgreSQL version: ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Bugs

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 11:14 AM
David Schweikert
 
Posts: n/a
Default BUG #4006: pg_ctl assumes that all config files lie in data_directory


The following bug has been logged online:

Bug reference: 4006
Logged by: David Schweikert
Email address: david@schweikert.ch
PostgreSQL version: 8.3.0
Operating system: Linux
Description: pg_ctl assumes that all config files lie in
data_directory
Details:

pg_ctl doesn't work if you put postgresql.conf in a different directory than
the database data files. According to the documentation, this is however
considered a good practice:
http://www.postgresql.org/docs/8.3/i...file-locations
..html

--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your Subscription:
http://mail.postgresql.org/mj/mj_www...tra=pgsql-bugs

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 11:14 AM
Tom Lane
 
Posts: n/a
Default Re: BUG #4006: pg_ctl assumes that all config files lie in data_directory

"David Schweikert" <david@schweikert.ch> writes:
> pg_ctl doesn't work if you put postgresql.conf in a different directory than
> the database data files.


Yeah, this is a known limitation that seems unlikely to get fixed soon,
as doing it right would appear to require giving pg_ctl the ability to
parse the config file completely.

regards, tom lane

--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your Subscription:
http://mail.postgresql.org/mj/mj_www...tra=pgsql-bugs

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-10-2008, 11:14 AM
Bruce Momjian
 
Posts: n/a
Default Re: BUG #4006: pg_ctl assumes that all config fileslie in data_directory

Tom Lane wrote:
> "David Schweikert" <david@schweikert.ch> writes:
> > pg_ctl doesn't work if you put postgresql.conf in a different directory than
> > the database data files.

>
> Yeah, this is a known limitation that seems unlikely to get fixed soon,
> as doing it right would appear to require giving pg_ctl the ability to
> parse the config file completely.


FYI, it is a TODO item:

* Allow pg_ctl to work properly with configuration files located outside
the PGDATA directory

pg_ctl can not read the pid file because it isn't located in the
config directory but in the PGDATA directory. The solution is to
allow pg_ctl to read and understand postgresql.conf to find the
data_directory value.

--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://postgres.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your Subscription:
http://mail.postgresql.org/mj/mj_www...tra=pgsql-bugs

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-10-2008, 11:14 AM
David Schweikert
 
Posts: n/a
Default Re: BUG #4006: pg_ctl assumes that all config files lie indata_directory

Hi,

On Mon, Mar 03, 2008 at 12:12:16 -0500, Bruce Momjian wrote:
> pg_ctl can not read the pid file because it isn't located in the
> config directory but in the PGDATA directory. The solution is to
> allow pg_ctl to read and understand postgresql.conf to find the
> data_directory value.


What about adding a command-line option to specify a different
configuration file? That would be certainly less nice, but also much
easier to implement, I guess.

Cheers
David

--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your Subscription:
http://mail.postgresql.org/mj/mj_www...tra=pgsql-bugs

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:23 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com