dbTalk Databases Forums  

Re: [BUGS] BUG #1337: Problem running PostgreSQL as service, incl.

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss Re: [BUGS] BUG #1337: Problem running PostgreSQL as service, incl. in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Neil Conway
 
Posts: n/a

Default Re: [BUGS] BUG #1337: Problem running PostgreSQL as service, incl. - 12-05-2004 , 07:15 PM






On Sun, 2004-12-05 at 09:43 +0000, PostgreSQL Bugs List wrote:
Quote:
In 8.0 RC1, because of bug in -D parsing in pg_ctl I am unable to run
postgres as service when I have space in data path - when i register it with
pg_ctl register -D "C:\Program Files\PostgreSQL\data" and try to run it then
it won't work and in event log I have this: pg_ctl: no database directory
specified and environment variable PGDATA unset.

I have found very simple solution, just added + 1 in one of xmallocs and it
seems to work, diff follows:
Thanks, fixed. (I used a slightly different fix: xstrdup() rather than
xmalloc() + strcpy() ).

-Neil



---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend


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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.