From: | Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com> |
---|---|
To: | Dimitri Maziuk <dmaziuk(at)bmrb(dot)wisc(dot)edu>, pgsql-general(at)lists(dot)postgresql(dot)org |
Subject: | Re: logical replication snapshots |
Date: | 2018-07-25 23:37:36 |
Message-ID: | bdafc796-ef59-03c6-f670-ac82306e743d@aklaver.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
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).
>
>> 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
>
>> 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
A little slow, but I realized that the above looks like the initial sync
for a table. Do these errors stretch back all the way back to your
original sync?
>
> 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?
>
> (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.)
>
--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com
From | Date | Subject | |
---|---|---|---|
Next Message | Andres Freund | 2018-07-26 00:57:06 | Re: logical replication snapshots |
Previous Message | Andres Freund | 2018-07-25 23:37:26 | Re: could not read block 0 in file : read only 0 of 8192 bytes when doing nasty on immutable index function |