pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedPostgreSQL 9.4.13 is facing issue in shutting down
6+ messages / 3 participants
[nested] [flat]
Commits from this thread:
2017-08-24 b51c8efc6a Fix bug that can cause walsender not to terminating at shutdown.
* PostgreSQL 9.4.13 is facing issue in shutting down
@ 2017-08-21 10:26 Abhijit Gharami <abhijitgharami@gmail.com>
2017-08-22 04:58 ` Fwd: PostgreSQL 9.4.13 is facing issue in shutting down Abhijit Gharami <abhijitgharami@gmail.com>
2017-08-22 19:16 ` Re: PostgreSQL 9.4.13 is facing issue in shutting down Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
0 siblings, 2 replies; 6+ messages in thread
From: Abhijit Gharami @ 2017-08-21 10:26 UTC (permalink / raw)
To: pgsql-admin
Hi,
Recently we have updated our PostgreSQL version from 9.4.12 to 9.4.13. With
version 9.4.13 while trying to stop the PostgreSQL server, database is
facing issues in shutting down. The problem probably occurs because of the
WAL sender process not getting terminated on shutdown request.
ps output:
postgre+ 7915 0.0 1.9 589772 39528 ? S< 09:11 0:00
/..../bin/postgres -D /.../postgresql -h 0.0.0.0 -p 5432
postgre+ 8617 0.0 0.4 590760 8344 ? S<s 09:13 0:00 postgres:
wal sender process replicator xx.xx.xx.xxx(45948) streaming 0/4000090
Sequence of events in log:
FATAL: terminating connection due to administrator command
LOG: received fast shutdown request
LOG: aborting any active transactions
LOG: autovacuum launcher shutting down
LOG: shutting down
LOG: database system is shut down
FATAL: the database system is shutting down
FATAL: the database system is shutting down
FATAL: the database system is shutting down
FATAL: the database system is shutting down
FATAL: the database system is shutting down
FATAL: the database system is shutting down
FATAL: the database system is shutting down
FATAL: the database system is shutting down
We are using pg_ctl fast mode to shutdown the postgres server.
Regards,
Abhijit
^ permalink raw reply [nested|flat] 6+ messages in thread
* Fwd: PostgreSQL 9.4.13 is facing issue in shutting down
2017-08-21 10:26 PostgreSQL 9.4.13 is facing issue in shutting down Abhijit Gharami <abhijitgharami@gmail.com>
@ 2017-08-22 04:58 ` Abhijit Gharami <abhijitgharami@gmail.com>
2017-08-22 05:35 ` Re: Fwd: PostgreSQL 9.4.13 is facing issue in shutting down Michael Paquier <michael.paquier@gmail.com>
1 sibling, 1 reply; 6+ messages in thread
From: Abhijit Gharami @ 2017-08-22 04:58 UTC (permalink / raw)
To: pgsql-general@postgresql.org; pgsql-bugs@postgresql.org
Hi,
Recently we have updated our PostgreSQL version from 9.4.12 to 9.4.13. With
version 9.4.13 while trying to stop the PostgreSQL server, database is
facing issues in shutting down. The problem probably occurs because of the
WAL sender process not getting terminated on shutdown request.
ps output:
postgre+ 7915 0.0 1.9 589772 39528 ? S< 09:11 0:00
/..../bin/postgres -D /.../postgresql -h 0.0.0.0 -p 5432
postgre+ 8617 0.0 0.4 590760 8344 ? S<s 09:13 0:00 postgres:
wal sender process replicator xx.xx.xx.xxx(45948) streaming 0/4000090
Sequence of events in log:
FATAL: terminating connection due to administrator command
LOG: received fast shutdown request
LOG: aborting any active transactions
LOG: autovacuum launcher shutting down
LOG: shutting down
LOG: database system is shut down
FATAL: the database system is shutting down
FATAL: the database system is shutting down
FATAL: the database system is shutting down
FATAL: the database system is shutting down
FATAL: the database system is shutting down
FATAL: the database system is shutting down
FATAL: the database system is shutting down
FATAL: the database system is shutting down
We are using pg_ctl fast mode to shutdown the postgres server.
Regards,
Abhijit
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Fwd: PostgreSQL 9.4.13 is facing issue in shutting down
2017-08-21 10:26 PostgreSQL 9.4.13 is facing issue in shutting down Abhijit Gharami <abhijitgharami@gmail.com>
2017-08-22 04:58 ` Fwd: PostgreSQL 9.4.13 is facing issue in shutting down Abhijit Gharami <abhijitgharami@gmail.com>
@ 2017-08-22 05:35 ` Michael Paquier <michael.paquier@gmail.com>
2017-08-22 06:37 ` Re: [BUGS] Fwd: PostgreSQL 9.4.13 is facing issue in shutting down Abhijit Gharami <abhijitgharami@gmail.com>
0 siblings, 1 reply; 6+ messages in thread
From: Michael Paquier @ 2017-08-22 05:35 UTC (permalink / raw)
To: Abhijit Gharami <abhijitgharami@gmail.com>; +Cc: PostgreSQL mailing lists <pgsql-general@postgresql.org>; PostgreSQL mailing lists <pgsql-bugs@postgresql.org>
On Tue, Aug 22, 2017 at 1:58 PM, Abhijit Gharami
<abhijitgharami@gmail.com> wrote:
> Recently we have updated our PostgreSQL version from 9.4.12 to 9.4.13. With
> version 9.4.13 while trying to stop the PostgreSQL server, database is
> facing issues in shutting down. The problem probably occurs because of the
> WAL sender process not getting terminated on shutdown request.
> ps output:
> postgre+ 7915 0.0 1.9 589772 39528 ? S< 09:11 0:00
> /..../bin/postgres -D /.../postgresql -h 0.0.0.0 -p 5432
> postgre+ 8617 0.0 0.4 590760 8344 ? S<s 09:13 0:00 postgres:
> wal sender process replicator xx.xx.xx.xxx(45948) streaming 0/4000090
One change introduced between 9.4.12 and 9.4.13 is the way WAL senders
are stopped at shutdown. The checkpointer will first send a signal to
all the WAL senders after all the normal backends have exited before
beginning to issue the checkpoint shutdown. This will switch the WAL
senders to a stopping state where all new queries are blocked, and all
WAL senders exit after they have sent any remaining WAL to the
clients, including the checkpoint shutdown record. So, what is the
client behind this WAL sender? It seems that this WAL sender is
waiting for some confirmation activity.
--
Michael
--
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] 6+ messages in thread
* Re: [BUGS] Fwd: PostgreSQL 9.4.13 is facing issue in shutting down
2017-08-21 10:26 PostgreSQL 9.4.13 is facing issue in shutting down Abhijit Gharami <abhijitgharami@gmail.com>
2017-08-22 04:58 ` Fwd: PostgreSQL 9.4.13 is facing issue in shutting down Abhijit Gharami <abhijitgharami@gmail.com>
2017-08-22 05:35 ` Re: Fwd: PostgreSQL 9.4.13 is facing issue in shutting down Michael Paquier <michael.paquier@gmail.com>
@ 2017-08-22 06:37 ` Abhijit Gharami <abhijitgharami@gmail.com>
2017-08-23 00:55 ` Re: Fwd: PostgreSQL 9.4.13 is facing issue in shutting down Michael Paquier <michael.paquier@gmail.com>
0 siblings, 1 reply; 6+ messages in thread
From: Abhijit Gharami @ 2017-08-22 06:37 UTC (permalink / raw)
To: Michael Paquier <michael.paquier@gmail.com>; +Cc: PostgreSQL mailing lists <pgsql-general@postgresql.org>; PostgreSQL mailing lists <pgsql-bugs@postgresql.org>
The client is a Hot Standby server.
Regards,
Abhijit
On Tue, Aug 22, 2017 at 11:05 AM, Michael Paquier <michael.paquier@gmail.com
> wrote:
> On Tue, Aug 22, 2017 at 1:58 PM, Abhijit Gharami
> <abhijitgharami@gmail.com> wrote:
> > Recently we have updated our PostgreSQL version from 9.4.12 to 9.4.13.
> With
> > version 9.4.13 while trying to stop the PostgreSQL server, database is
> > facing issues in shutting down. The problem probably occurs because of
> the
> > WAL sender process not getting terminated on shutdown request.
> > ps output:
> > postgre+ 7915 0.0 1.9 589772 39528 ? S< 09:11 0:00
> > /..../bin/postgres -D /.../postgresql -h 0.0.0.0 -p 5432
> > postgre+ 8617 0.0 0.4 590760 8344 ? S<s 09:13 0:00
> postgres:
> > wal sender process replicator xx.xx.xx.xxx(45948) streaming 0/4000090
>
> One change introduced between 9.4.12 and 9.4.13 is the way WAL senders
> are stopped at shutdown. The checkpointer will first send a signal to
> all the WAL senders after all the normal backends have exited before
> beginning to issue the checkpoint shutdown. This will switch the WAL
> senders to a stopping state where all new queries are blocked, and all
> WAL senders exit after they have sent any remaining WAL to the
> clients, including the checkpoint shutdown record. So, what is the
> client behind this WAL sender? It seems that this WAL sender is
> waiting for some confirmation activity.
> --
> Michael
>
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Fwd: PostgreSQL 9.4.13 is facing issue in shutting down
2017-08-21 10:26 PostgreSQL 9.4.13 is facing issue in shutting down Abhijit Gharami <abhijitgharami@gmail.com>
2017-08-22 04:58 ` Fwd: PostgreSQL 9.4.13 is facing issue in shutting down Abhijit Gharami <abhijitgharami@gmail.com>
2017-08-22 05:35 ` Re: Fwd: PostgreSQL 9.4.13 is facing issue in shutting down Michael Paquier <michael.paquier@gmail.com>
2017-08-22 06:37 ` Re: [BUGS] Fwd: PostgreSQL 9.4.13 is facing issue in shutting down Abhijit Gharami <abhijitgharami@gmail.com>
@ 2017-08-23 00:55 ` Michael Paquier <michael.paquier@gmail.com>
0 siblings, 0 replies; 6+ messages in thread
From: Michael Paquier @ 2017-08-23 00:55 UTC (permalink / raw)
To: Abhijit Gharami <abhijitgharami@gmail.com>; +Cc: PostgreSQL mailing lists <pgsql-bugs@postgresql.org>; marco.nenciarini@2ndquadrant.it
On Tue, Aug 22, 2017 at 3:37 PM, Abhijit Gharami
<abhijitgharami@gmail.com> wrote:
> The client is a Hot Standby server.
Marco, just added in CC, has taken the time to reproduce the problem
and has found the cause of the problem. He has also posted a patch on
this thread:
https://www.postgresql.org/message-id/1434ad79-ab0d-d6a9-4ea2-1afb1c06adaf@2ndquadrant.it
--
Michael
--
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] 6+ messages in thread
* Re: PostgreSQL 9.4.13 is facing issue in shutting down
2017-08-21 10:26 PostgreSQL 9.4.13 is facing issue in shutting down Abhijit Gharami <abhijitgharami@gmail.com>
@ 2017-08-22 19:16 ` Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
1 sibling, 0 replies; 6+ messages in thread
From: Peter Eisentraut @ 2017-08-22 19:16 UTC (permalink / raw)
To: Abhijit Gharami <abhijitgharami@gmail.com>; pgsql-admin
On 8/21/17 06:26, Abhijit Gharami wrote:
> Recently we have updated our PostgreSQL version from 9.4.12 to 9.4.13.
> With version 9.4.13 while trying to stop the PostgreSQL server, database
> is facing issues in shutting down. The problem probably occurs because
> of the WAL sender process not getting terminated on shutdown request.
This is probably the same issue as reported here:
https://www.postgresql.org/message-id/1434ad79-ab0d-d6a9-4ea2-1afb1c06adaf%402ndquadrant.it
You can try the patch attached there, or downgrade to 9.4.12 while this
issue is being investigated.
--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2017-08-23 00:55 UTC | newest]
Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-08-21 10:26 PostgreSQL 9.4.13 is facing issue in shutting down Abhijit Gharami <abhijitgharami@gmail.com>
2017-08-22 04:58 ` Abhijit Gharami <abhijitgharami@gmail.com>
2017-08-22 05:35 ` Michael Paquier <michael.paquier@gmail.com>
2017-08-22 06:37 ` Abhijit Gharami <abhijitgharami@gmail.com>
2017-08-23 00:55 ` Michael Paquier <michael.paquier@gmail.com>
2017-08-22 19:16 ` Peter Eisentraut <peter.eisentraut@2ndquadrant.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