pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Tom Lane <tgl@sss.pgh.pa.us>
To: neeraj kumar <neeru.cse@gmail.com>
Cc: Jeremy Schneider <schnjere@amazon.com>
Cc: pgsql-admin@postgresql.org
Cc: pgsql-general@postgresql.org
Subject: Re: Query on pg_stat_activity table got stuck
Date: Fri, 10 May 2019 12:13:58 -0400
Message-ID: <28335.1557504838@sss.pgh.pa.us> (raw )
In-Reply-To: <CAPR3Wj6E11q8L6YsXLdV_Q5qXXuDsgge_EnLzG_X6m0AX2Sp4w@mail.gmail.com >
References: <CAPR3Wj5Z17=+eeyrn_ZDG3NQGYgMEOY6JV6Y-WRRhGgwc16U3Q@mail.gmail.com >
<15877.1557178386@sss.pgh.pa.us >
<CAPR3Wj5CUVNqF2r6fNnrueDgn2k+qyADCvYZ2878SCytTrPPng@mail.gmail.com >
<21502.1557339176@sss.pgh.pa.us >
<CAPR3Wj4fT1hOumweROsAifTAMLT7oM+YejxBAcpPsXuMAecBZw@mail.gmail.com >
<29660.1557352732@sss.pgh.pa.us >
<e99f759e-4d18-d297-9e1a-639c7379faf2@amazon.com >
<30687.1557432052@sss.pgh.pa.us >
<CAPR3Wj4af3Lpu61DUdB8eri3TQhHLhcKY-q2bTRVLKAmj8h1Ug@mail.gmail.com >
<32704.1557458701@sss.pgh.pa.us >
<CAPR3Wj72j3GojE1xV3b__WccZYcc7M0w=WfYV5G=UKgEXDqOWA@mail.gmail.com >
<2586.1557462558@sss.pgh.pa.us >
<CAPR3Wj7gdw0BwwaeQ5sHbb_RmOeHddQbS2u8SCM=D5eBVRwFog@mail.gmail.com >
<CAPR3Wj6E11q8L6YsXLdV_Q5qXXuDsgge_EnLzG_X6m0AX2Sp4w@mail.gmail.com >
neeraj kumar <neeru.cse@gmail.com> writes:
> Also curious why query on pg_stat_activity is considering terminated
> process ?
The short answer to that is that this bug leaves shared memory in
a corrupt state. It's not really useful to worry about whether
readers should react differently to that --- you could spend endless
amounts of time hypothesizing different kinds of corruption and
endless amounts of code/cycles trying to work around it. But the
right answer is to fix it on the writing side.
regards, tom lane
view thread (18+ messages) latest in thread
Message-ID: <28335.1557504838@sss.pgh.pa.us>
Permalink: ../28335.1557504838@sss.pgh.pa.us/
Also on: postgresql.org/message-id/28335.1557504838@sss.pgh.pa.us
copy link · copy postgr.es
reply Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, neeru.cse@gmail.com, schnjere@amazon.com, pgsql-general@postgresql.org
Subject: Re: Query on pg_stat_activity table got stuck
In-Reply-To: <28335.1557504838@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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