<p>With osm2pgsql all relations are imported to the 'planet_osm_rels' table. That's great, but the table misses a 'way' column, therefore a search for all relations in a bounding box would necessarily include all relations in the planet.</p>

<p>Is there any documentation how to achieve this? In my particular case I'm interested in relations of type=bridge, but it could be needed for e.g. type=restriction too.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href='https://github.com/openstreetmap/osm2pgsql/issues/116'>view it on GitHub</a>.<img src='https://github.com/notifications/beacon/4046574__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcwNTEyMTY2OCwiZGF0YSI6eyJpZCI6MjMzODYxOTN9fQ==--257d82b3aa647ed187459611fa15f30e262ccdbb.gif' height='1' width='1'></p>