Peter,
> I wonder whether platforms with INT64_IS_BROKEN can address more than 2GB of
> memory anyway.
>
To be quite frank, current PostgreSQL can't effectively use more than
256mb of work_mem anyway. We'd like to fix that, but it's not fixed yet
AFAIK.
--Josh