Re: BUG #15808: ERROR: subtransaction logged without previous top-level txn record (SQLSTATE XX000)

From: "Hsu, John" <hsuchen(at)amazon(dot)com>
To: Dave Cramer <davecramer(at)gmail(dot)com>, Andres Freund <andres(at)anarazel(dot)de>
Cc: "mansour(at)oxplot(dot)com" <mansour(at)oxplot(dot)com>, "pgsql-bugs(at)lists(dot)postgresql(dot)org" <pgsql-bugs(at)lists(dot)postgresql(dot)org>
Subject: Re: BUG #15808: ERROR: subtransaction logged without previous top-level txn record (SQLSTATE XX000)
Date: 2019-09-06 23:36:19
Message-ID: FE49EE64-8D40-4F5B-82F3-39135FD93583@amazon.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On 9/6/19, 1:40 PM, "Dave Cramer" <davecramer(at)gmail(dot)com> wrote:
> It's possible that I have someone that would be able to run this in a non-RDS environment.
>
> It's unlikely we have a reproducible test case, but it's likely we can modify the code on their boxes for debugging and or get WAL files for inspection.
>
> This is in a version of 9.6.14 so the above fix should be in it.
>
> I'm willing to facilitate if you can provide some direction.

Hey Dave,

I have a repro for this issue here:
https://www.postgresql.org/message-id/flat/AB5978B2-1772-4FEE-A245-74C91704ECB0%40amazon.com

I can still reproduce it on REL_11_STABLE as of the latest commit (7babff18).

postgres=# select version();
version
--------------------------------------------------------------------------------------------------------
PostgreSQL 11.5 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 7.3.1 20180303 (Red Hat 7.3.1-5), 64-bit
(1 row)

postgres=# \q

[ec2-user.... postgres]$ pg_recvlogical -d postgres --start --slot test_slot_1 -f /dev/null
pg_recvlogical: unexpected termination of replication stream: ERROR: subtransaction logged without previous top-level txn record
pg_recvlogical: disconnected; waiting 5 seconds to try again

Thanks,
John H

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2019-09-07 00:00:51 Re: BUG #15994: can't run psql
Previous Message PG Bug reporting form 2019-09-06 22:39:17 BUG #15994: can't run psql