pgRouting/osm2pgrouting — pull request #27 by ldesousa (2014-01-09 09:19:08+00:00)
Title: Foreign keys

Adds a new method to Export2DB that creates foreign keys for all tables except ways after the topology is created. When the topology is created primary key and foreign keys are added to the ways table, as so foreign keys in other tables referencing ways.

Still missing a foreign for the way_id field in the relations_way table. Not yet clear what is this field is supposed to be referencing.

The nodes table is not referenced; not clear why either.