Attached patch fixes this for the HEAD. But this needs to be fixed all the way to 9.1 when unlogged tables were first introduced.
pgsql-bugs by date:
Соглашаюсь с условиями обработки персональных данных