The following bug has been logged on the website:
Bug reference: 17112
Logged by: Yuetsuro Kobayashi
Email address: inconvenience(dot)notice(at)gmail(dot)com
PostgreSQL version: 13.3
Operating system: Windows 10 Pro
Description:
When process was abnormal ends by a stored procedure processing problem, the
table processing is restored, but sequence number remains incremented and is
not restored.