From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Dimitri Maziuk <dmaziuk@bmrb.wisc.edu>
To: pgsql-general@lists.postgresql.org
Subject: Re: logical replication snapshots
Date: Wed, 25 Jul 2018 12:31:01 -0700
Message-ID: <1c539619-7b72-3669-81cd-2a55352b1008@aklaver.com> (raw)
In-Reply-To: <a1b9701e-5249-2a61-6a37-f8f02c3fe707@bmrb.wisc.edu>
References: <20180724172115.ztthbxmfgucnuuq3@alvherre.pgsql>
<f1fe2e11-c298-0383-5df2-e0dbb2a9a68b@bmrb.wisc.edu>
<20180724184337.k6nq7k3cq7xoorjn@alap3.anarazel.de>
<04dcfd2d-6201-09e7-4209-9894d669f694@bmrb.wisc.edu>
<20180725152827.g22qmue3wgycifjh@alap3.anarazel.de>
<9b9a72f4-44c8-5e78-8814-fdc39ca3a3ad@bmrb.wisc.edu>
<cade60b5-cdc5-a9ed-68b8-173f394a9ce5@aklaver.com>
<a1b9701e-5249-2a61-6a37-f8f02c3fe707@bmrb.wisc.edu>
On 07/25/2018 11:10 AM, Dimitri Maziuk wrote:
> On 07/25/2018 11:16 AM, Adrian Klaver wrote:
>
>> Where you using pg_export_snapshot() by any chance?:
>
> If it's not in chapter 31 of TFM then I have not touched it. The only
> notable thing I changed from 31.9 quickstart is that replica identity is
> full on all tables (the data's a mess).
So no.
>
>> Where there any relevant error messages in the log before the database
>> hung?
>
> Do you seriously expect me to know what "relevant" is? ;) -- It's 7
> days' worth of
Generally speaking relevancy increases the closer you get to the fall
over event. So we are most interested in entries close to the point
where the database stopped/failed.
>
>> 2018-07-23 09:43:12.851 CDT [7975] STATEMENT: COPY macromolecules."Entity_common_name" TO STDOUT
>> 2018-07-23 09:43:12.925 CDT [7982] LOG: logical decoding found consistent point at 19/E6942408
>> 2018-07-23 09:43:12.925 CDT [7982] DETAIL: There are no running transactions.
>> 2018-07-23 09:43:12.935 CDT [7982] ERROR: permission denied for schema macromolecules
>> 2018-07-23 09:43:12.935 CDT [7982] STATEMENT: COPY macromolecules."Assembly" TO STDOUT
>> 2018-07-23 09:43:13.034 CDT [7987] LOG: logical decoding found consistent point at 19/E6942440
>> 2018-07-23 09:43:13.034 CDT [7987] DETAIL: There are no running transactions.
>> 2018-07-23 09:43:13.044 CDT [7987] ERROR: permission denied for schema macromolecules
>> 2018-07-23 09:43:13.044 CDT [7987] STATEMENT: COPY macromolecules."Spectral_transition" TO STDOUT
>> 2018-07-23 09:43:13.135 CDT [7990] LOG: logical decoding found consistent point at 19/E6942478
>> 2018-07-23 09:43:13.135 CDT [7990] DETAIL: There are no running transactions.
>> 2018-07-23 09:43:13.145 CDT [7990] ERROR: permission denied for schema macromolecules
>> 2018-07-23 09:43:13.145 CDT [7990] STATEMENT: COPY macromolecules."Assembly_db_link" TO STDOUT
>
> that ends with
>
>> 2018-07-23 09:45:40.280 CDT [6032] LOG: database system was interrupted; last known up at 2018-07-06 17:04:28 CDT
>> 2018-07-23 09:45:40.281 CDT [6033] FATAL: the database system is starting up
>> 2018-07-23 09:45:40.282 CDT [6034] FATAL: the database system is starting up
> ... ad infinitum ...
>
> Would "permission denied" be relevant?
Logical decoding is something I am still learning. The "permission
denied" would to me be relevant only to the extent that it seems to be
provoking:
"LOG: logical decoding found consistent point at 19/E6942440"
DETAIL: There are no running transactions."
Others with more experience in this area would need to fill whether that
might account for the 13 million files in the ~snapshot/ directory.
>
> (Not sure where that is coming from: I did initial sync as postgres then
> altered it to replication user. Can't track it down now since the
> database is dead.)
>
In your previous post you said:
"(To somebody else as I'm obviously not turning logical replication back
on until I know it won't kill my server again.) "
So what are you working off now?
--
Adrian Klaver
adrian.klaver@aklaver.com
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: adrian.klaver@aklaver.com, dmaziuk@bmrb.wisc.edu
Subject: Re: logical replication snapshots
In-Reply-To: <1c539619-7b72-3669-81cd-2a55352b1008@aklaver.com>
References: <20180724172115.ztthbxmfgucnuuq3@alvherre.pgsql> <f1fe2e11-c298-0383-5df2-e0dbb2a9a68b@bmrb.wisc.edu> <20180724184337.k6nq7k3cq7xoorjn@alap3.anarazel.de> <04dcfd2d-6201-09e7-4209-9894d669f694@bmrb.wisc.edu> <20180725152827.g22qmue3wgycifjh@alap3.anarazel.de> <9b9a72f4-44c8-5e78-8814-fdc39ca3a3ad@bmrb.wisc.edu> <cade60b5-cdc5-a9ed-68b8-173f394a9ce5@aklaver.com> <a1b9701e-5249-2a61-6a37-f8f02c3fe707@bmrb.wisc.edu> <1c539619-7b72-3669-81cd-2a55352b1008@aklaver.com>
* 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