pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #14143: stop database with -m immediate cause fatal message log when database start
2+ messages / 2 participants
[nested] [flat]

* BUG #14143: stop database with -m immediate cause fatal message log when database start
@ 2016-05-17 04:14 marc47marc47@gmail.com
  2016-05-17 11:23 ` Re: BUG #14143: stop database with -m immediate cause fatal message log when database start Kevin Grittner <kgrittn@gmail.com>
  0 siblings, 1 reply; 2+ messages in thread

From: marc47marc47@gmail.com @ 2016-05-17 04:14 UTC (permalink / raw)
  To: pgsql-bugs

The following bug has been logged on the website:

Bug reference:      14143
Logged by:          marc hsiao
Email address:      marc47marc47@gmail.com
PostgreSQL version: 9.6beta1
Operating system:   Centos 5.4
Description:        

The database start with FATAL message when I try to stop the database with
immediate.
I assume that FATAL, is a critical error log, it should be an warning
only.

My application will not continue when database has FATAL log in starting
progress.


[dbsecure@rd4 (SecuCenter_) SecureCenter]$pg_ctl stop -m immediate
waiting for server to shut down....LOG:  received immediate shutdown
request
WARNING:  terminating connection because of crash of another server
process
DETAIL:  The postmaster has commanded this server process to roll back the
current transaction and exit, because another server process exited
abnormally and possibly corrupted shared memory.
HINT:  In a moment you should be able to reconnect to the database and
repeat your command.
LOG:  database system is shut down
 done
server stopped
[dbsecure@rd4 (SecuCenter_) SecureCenter]$pg_ctl -D ./data -w start
waiting for server to start....LOG:  database system was interrupted; last
known up at 2016-05-17 12:03:09 CST
FATAL:  the database system is starting up
.LOG:  database system was not properly shut down; automatic recovery in
progress
LOG:  invalid record length at 0/7A5F770: wanted 24, got 0
LOG:  redo is not required
LOG:  MultiXact member wraparound protections are now enabled
LOG:  autovacuum launcher started
LOG:  database system is ready to accept connections
 done
server started



-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs


^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: BUG #14143: stop database with -m immediate cause fatal message log when database start
  2016-05-17 04:14 BUG #14143: stop database with -m immediate cause fatal message log when database start marc47marc47@gmail.com
@ 2016-05-17 11:23 ` Kevin Grittner <kgrittn@gmail.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Kevin Grittner @ 2016-05-17 11:23 UTC (permalink / raw)
  To: marc47marc47@gmail.com; +Cc: pgsql-bugs

On Tue, May 17, 2016 at 12:14 AM,  <marc47marc47@gmail.com> wrote:

> The database start with FATAL message when I try to stop the database with
> immediate.

That is not a bug; stop immediate forces a crash of the service, and
crash recovery is needed when the service is started again.

> I assume that FATAL, is a critical error log, it should be an warning
> only.

FATAL means the connection involved was broken.  It was.  More than
that, though, you should pretty much never use stop immediate unless
the building is on fire (literally) or you don't plan to keep the
cluster after it is stopped.

-- 
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2016-05-17 11:23 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-05-17 04:14 BUG #14143: stop database with -m immediate cause fatal message log when database start marc47marc47@gmail.com
2016-05-17 11:23 ` Kevin Grittner <kgrittn@gmail.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox