#9812: mark folder as read does not work with pgsql