Re: pg_logical_slot_peek_changes crashes postgres when called from inside pl/pgsql

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ben Chobot <bench(at)silentmedia(dot)com>
Cc: Andres Freund <andres(at)anarazel(dot)de>, Michael Paquier <michael(dot)paquier(at)gmail(dot)com>, PostgreSQL mailing lists <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: pg_logical_slot_peek_changes crashes postgres when called from inside pl/pgsql
Date: 2017-10-06 23:21:10
Message-ID: 32118.1507332070@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

I wrote:
> I thought of a better way, as attached.

Pushed. Ben, could you confirm that the committed patch fixes your
original use-case? The 9.5 version of the patch is at

https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=13d2ed921035f2d88adf87d796373e920bdd56ee

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Andres Freund 2017-10-07 00:21:16 Re: json(b)_array_elements use causes very large memory usage when also referencing entire json document
Previous Message Cristian Gómez García 2017-10-06 22:33:01 Re: How make exceptions in C# .NET with PostgreSQL?