dbTalk Databases Forums  

[BUGS] bug report: 7.4beta3 pg_ctl log handling

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


Discuss [BUGS] bug report: 7.4beta3 pg_ctl log handling in the mailing.database.pgsql-bugs forum.



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

Default [BUGS] bug report: 7.4beta3 pg_ctl log handling - 10-01-2003 , 11:45 PM






Simplest case to test is:

pg_ctl start -D /valid/db/dir -l /invalid/dir
pg_ctl: /invalid/dir: No such file or directory
postmaster successfully started

Postmaster hasn't started and the error could probably use some work.

Perhaps some more tests after line 340 of pg_ctl would be appropriate.
Something along the lines of (perlish pseudocode):

if ( -w $logfile || ( -w `dirname $logfile` )

Should it also test -O to ensure ownership if the file does exist? I'll
brush up on my sh and submit a patch if requested.





---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo (AT) postgresql (DOT) org so that your
message can get through to the mailing list cleanly

Reply With Quote
  #2  
Old   
Tom Lane
 
Posts: n/a

Default Re: [BUGS] bug report: 7.4beta3 pg_ctl log handling - 10-01-2003 , 11:56 PM






Arguile <arguile (AT) lucentstudios (DOT) com> writes:
Quote:
Simplest case to test is:
pg_ctl start -D /valid/db/dir -l /invalid/dir
pg_ctl: /invalid/dir: No such file or directory
postmaster successfully started

Postmaster hasn't started and the error could probably use some work.
If you don't specify -w then pg_ctl only launches the postmaster,
it does not wait around to see if the postmaster really fired up
sucessfully. If there's a bug here, it's only that -w isn't the
default behavior.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo (AT) postgresql (DOT) org


Reply With Quote
  #3  
Old   
Arguile
 
Posts: n/a

Default Re: [BUGS] bug report: 7.4beta3 pg_ctl log handling - 10-02-2003 , 12:08 AM



On Thu, 2003-10-02 at 00:54, Tom Lane wrote:
Quote:
Arguile <arguile (AT) lucentstudios (DOT) com> writes:
Simplest case to test is:
pg_ctl start -D /valid/db/dir -l /invalid/dir
pg_ctl: /invalid/dir: No such file or directory
postmaster successfully started

Postmaster hasn't started and the error could probably use some work.

If you don't specify -w then pg_ctl only launches the postmaster,
it does not wait around to see if the postmaster really fired up
sucessfully. If there's a bug here, it's only that -w isn't the
default behavior.
Oops. You can tell how often I start Pg by hand . Sorry for the
bother.


---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo (AT) postgresql (DOT) org so that your
message can get through to the mailing list cleanly


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.