A much more sensible answer is to initialize the segno to the segmentcurrently being written, as in the attached.
-- Álvaro Herrera https://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services