Postgresql get latest record for each id July 8, 2019 16 32 64 128 Postgresql get most recent record for each id