Question about postgres commits to table in UNLOGGED mode
Your understanding is correct. UNLOGGED tables participate in transactions just like regular, logged tables.
The only difference is the crash-safety, so you may lose data if your server crashes (unexpected power-outage, operating system crash, Postgres bug, ...)