brettch/osmosis — pull request #3 by pnorman (2013-07-03 07:19:28+00:00)
Title: Manually set some statistics for way_nodes and relation_members

Postgresql gets counts of distinct values horribly wrong for these tables.

It consistently estimates there are only 1-2 million unique way_ids, but we know there are closer to 200 million.
This fixes those problems and drastically improves query planning.

Fixes https://github.com/pnorman/openstreetmap-cgimap/issues/4