dbTalk Databases Forums  

[BUGS] pg_ctl telling only half the truth

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


Discuss [BUGS] pg_ctl telling only half the truth in the mailing.database.pgsql-bugs forum.



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

Default [BUGS] pg_ctl telling only half the truth - 11-05-2004 , 04:59 AM






Guess what happend here:

[bertheau@dicaprio pg80]$ bin/pg_ctl -D data -l log start
postmaster starting
[bertheau@dicaprio pg80]$

No, postmaster was not starting - it was configured to listen on the
default port - and there was already another postmaster running on 5432.
This information was of course in the log file, but pg_ctl should have
said that the postmaster did not start successfully.

--
Markus Bertheau <twanger (AT) bluetwanger (DOT) de>


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

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

Default Re: [BUGS] pg_ctl telling only half the truth - 11-05-2004 , 09:57 AM






Markus Bertheau <twanger (AT) bluetwanger (DOT) de> writes:
Quote:
Guess what happend here:
[bertheau@dicaprio pg80]$ bin/pg_ctl -D data -l log start
postmaster starting
[bertheau@dicaprio pg80]$

No, postmaster was not starting - it was configured to listen on the
default port - and there was already another postmaster running on 5432.
This information was of course in the log file, but pg_ctl should have
said that the postmaster did not start successfully.
It did not say that the postmaster had started; it said it was starting,
which was true. If you want it to wait around to verify whether the
postmaster started OK, use the -w switch.

regards, tom lane

---------------------------(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
  #3  
Old   
Markus Bertheau
 
Posts: n/a

Default Re: [BUGS] pg_ctl telling only half the truth - 11-05-2004 , 10:10 AM



=D0=92 =D0=9F=D1=82=D0=BD, 05.11.2004, =D0=B2 16:46, Tom Lane =D0=BF=D0=B8=
=D1=88=D0=B5=D1=82:
Quote:
Markus Bertheau <twanger (AT) bluetwanger (DOT) de> writes:
Guess what happend here:
[bertheau@dicaprio pg80]$ bin/pg_ctl -D data -l log start
postmaster starting
[bertheau@dicaprio pg80]$=20
=20
No, postmaster was not starting - it was configured to listen on the
default port - and there was already another postmaster running on 5432.
This information was of course in the log file, but pg_ctl should have
said that the postmaster did not start successfully.
=20
It did not say that the postmaster had started; it said it was starting,
which was true. If you want it to wait around to verify whether the
postmaster started OK, use the -w switch.
Why is the -w switch not on by default then? (I guess this also answers
the question why it is there at all - i.e. why you have to be able to
not wait for the postmaster to start.)

Thanks

--=20
Markus Bertheau <twanger (AT) bluetwanger (DOT) de>


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


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.