I’ve created a custom aggregate in Postgres that lets you essentially get the same result as what MySQL does:
select a, last(b), last(c) from table group by a
As it’s name implies, returns the last value that the aggregate encountered for the group. You can add an “order by” within the parenthesis to make it deterministic.