Re: Long text values destroys logical replication slots

From: Andres Freund <andres(at)anarazel(dot)de>
To: Adam Dratwiński <adam(dot)dratwinski(at)gmail(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org, Krzysiek Kotlarski <kotlarski(dot)krzysztof(at)gmail(dot)com>
Subject: Re: Long text values destroys logical replication slots
Date: 2016-03-06 02:18:11
Message-ID: 20160306021811.n73abbpuu4rqeviu@alap3.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hi Adam,

On 2015-10-28 19:51:18 +0100, Adam Dratwiński wrote:
> I recently encountered a bug on my production postgres which results in
> killing replication slot. It happens when there is an UPDATE statement
> called on a record having text column with a very long value (about 1mb).
> The problem can be easily reproduced by this query:
>
> https://gist.github.com/adwinsky/f7a6dc4382776fb9ea60
>
> Here I am using decoderbufs decoder https://github.com/krzychk/decoderbufs
> but it doesn't seems to be related with this plugin as it also happen on
> the postgres test decoder.

I pushed a fix for this; it'll be included in the next maintenance
releases which are coming up soon-ish. Sorry that it took so long.

Thanks for the report!

Regards,

Andres

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Andres Freund 2016-03-06 02:18:55 Re: BUG #13844: Logical decoding bug with subxact + row locking
Previous Message Fujii Masao 2016-03-05 17:47:54 Re: BUG #13770: Extending recovery_min_apply_delay on Standby causes it to be unavailable for a while