Re: Fastpath while arranging the changes in LSN order in logical decoding

From: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
To: Dilip Kumar <dilipbalaut(at)gmail(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Fastpath while arranging the changes in LSN order in logical decoding
Date: 2020-01-08 11:58:23
Message-ID: 24e8f688-5750-8967-0339-6c9b5f112c51@iki.fi
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 25/11/2019 05:52, Dilip Kumar wrote:
> In logical decoding, while sending the changes to the output plugin we
> need to arrange them in the LSN order. But, if there is only one
> transaction which is a very common case then we can avoid building the
> binary heap. A small patch is attached for the same.

Does this make any measurable performance difference? Building a
one-element binary heap seems pretty cheap.

- Heikki

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Fabien COELHO 2020-01-08 12:07:41 Re: pgbench - use pg logging capabilities
Previous Message Peter Eisentraut 2020-01-08 10:57:13 Re: adding partitioned tables to publications