Here lie few scripts for extracting and processing place and admin boundaries from an OpenStreetMap Planet file. They populate two PostGIS tables and then create or enhance feeds for places, features and so on. Look into individual directories to study parts of the infrastructure.
Developed by Ilya Zverev for MAPS.ME, published under Apache License 2.0.