Having trouble restoring my Heroku database with my local backup. Keep in mind I am using the PostGIS extension. After doing the pg_restore command from the terminal I get the "'spacial_ref_sys' does not exist" error
pg_restore: creating EXTENSION "postgis"
pg_restore: while PROCESSING TOC:
pg_restore: from TOC entry 2; 3079 426371 EXTENSION postgis (no owner)
pg_restore: error: could not execute query: ERROR: relation "spatial_ref_sys" does not exist
Command was: CREATE EXTENSION IF NOT EXISTS postgis WITH SCHEMA public;
But "spatial_ref_sys" DOES EXIST since I made sure to create the extension. To verify that this table exists:
Why?