Re: Moving slot restart_lsn/catalog_xmin more eagerly from SQL functions

2018-12-30 Thread Petr Jelinek
On 30/12/2018 20:27, Petr Jelinek wrote: > Hi, > > while messing around with slot code I noticed that the SQL functions for > consuming/moving logical replication slots only move restart_lsn up to > previously consumed position and not to currently consumed position. The > reason for that is that

Moving slot restart_lsn/catalog_xmin more eagerly from SQL functions

2018-12-30 Thread Petr Jelinek
Hi, while messing around with slot code I noticed that the SQL functions for consuming/moving logical replication slots only move restart_lsn up to previously consumed position and not to currently consumed position. The reason for that is that restart_lsn is not moved forward unless new value is