Note
pgRouting depends on PostGIS. To install PostGIS, see EDB PostGIS
To enable pgRouting, create the extension:
CREATE EXTENSION pgrouting;
For additional configuration information, see Configuring pgRouting in the official pgRouting documentation.