Henry House <hajhouse(at)houseag(dot)com> writes:
> I only want the value of id for the row that matches max(postdate).
The standard-conforming way involves using a subselect, as someone
else already illustrated. A less standard but considerably faster
method is to use SELECT DISTINCT ON; there's an example in the
SELECT reference page.
regards, tom lane