I'm taking an intro to SQL course and I can't get my very first database loaded. I have a file dvdrental.tar, I create a new database dvdrental > right click > Restore > Select File > Pick "Data" under Restore options, and I get the error below. I'm on Mac OSX and the pgAmin instance is being loaded in Firefox if that helps.
Here's the full error, I have no idea what any of it means, as I'm brand new to SQL and just setting it up:
/Library/PostgreSQL/10/bin/pg_restore --host "localhost" --port "5432" --username "postgres" --no-password --dbname "dvdrental" --section=data --verbose "/Users/chasehippen/Downloads/Postgresql/dvdrental.tar"
pg_restore: connecting to database for restore
pg_restore: implied data-only restore
pg_restore: processing data for table "public.actor"
pg_restore: [archiver (db)] Error while PROCESSING TOC:
pg_restore: [archiver (db)] Error from TOC entry 2610; 0 16430 TABLE DATA actor postgres
pg_restore: [archiver (db)] could not execute query: ERROR: relation "actor" does not exist
Command was: COPY actor (actor_id, first_name, last_name, last_update) FROM stdin;
pg_restore: executing SEQUENCE SET actor_actor_id_seq
pg_restore: [archiver (db)] Error from TOC entry 2643; 0 0 SEQUENCE SET actor_actor_id_seq postgres
pg_restore: [archiver (db)] could not execute query: ERROR: relation "actor_actor_id_seq" does not exist
LINE 1: SELECT pg_catalog.setval('actor_actor_id_seq', 200, true);
^
Command was: SELECT pg_catalog.setval('actor_actor_id_seq', 200, true);
pg_restore: processing data for table "public.address"
pg_restore: [archiver (db)] Error from TOC entry 2618; 0 16471 TABLE DATA address postgres
pg_restore: [archiver (db)] could not execute query: ERROR: relation "address" does not exist
Command was: COPY address (address_id, address, address2, district, city_id, postal_code, phone, last_update) FROM stdin;
pg_restore: executing SEQUENCE SET address_address_id_seq
pg_restore: [archiver (db)] Error from TOC entry 2644; 0 0 SEQUENCE SET address_address_id_seq postgres
pg_restore: [archiver (db)] could not execute query: ERROR: relation "address_address_id_seq" does not exist
LINE 1: SELECT pg_catalog.setval('address_address_id_seq', 605, true...
^
Command was: SELECT pg_catalog.setval('address_address_id_seq', 605, true);
pg_restore: processing data for table "public.category"
pg_restore: [archiver (db)] Error from TOC entry 2612; 0 16437 TABLE DATA category postgres
pg_restore: [archiver (db)] could not execute query: ERROR: relation "category" does not exist
Command was: COPY category (category_id, name, last_update) FROM stdin;
pg_restore: executing SEQUENCE SET category_category_id_seq
pg_restore: [archiver (db)] Error from TOC entry 2645; 0 0 SEQUENCE SET category_category_id_seq postgres
pg_restore: [archiver (db)] could not execute query: ERROR: relation "category_category_id_seq" does not exist
LINE 1: SELECT pg_catalog.setval('category_category_id_seq', 16, tru...
^
Command was: SELECT pg_catalog.setval('category_category_id_seq', 16, true);
pg_restore: processing data for table "public.city"
pg_restore: [archiver (db)] Error from TOC entry 2620; 0 16478 TABLE DATA city postgres
pg_restore: [archiver (db)] could not execute query: ERROR: relation "city" does not exist
Command was: COPY city (city_id, city, country_id, last_update) FROM stdin;
pg_restore: executing SEQUENCE SET city_city_id_seq
pg_restore: [archiver (db)] Error from TOC entry 2646; 0 0 SEQUENCE SET city_city_id_seq postgres
pg_restore: [archiver (db)] could not execute query: ERROR: relation "city_city_id_seq" does not exist
LINE 1: SELECT pg_catalog.setval('city_city_id_seq', 600, true);
^
Command was: SELECT pg_catalog.setval('city_city_id_seq', 600, true);
pg_restore: processing data for table "public.country"
pg_restore: [archiver (db)] Error from TOC entry 2622; 0 16485 TABLE DATA country postgres
pg_restore: [archiver (db)] could not execute query: ERROR: relation "country" does not exist
Command was: COPY country (country_id, country, last_update) FROM stdin;
pg_restore: executing SEQUENCE SET country_country_id_seq
pg_restore: [archiver (db)] Error from TOC entry 2647; 0 0 SEQUENCE SET country_country_id_seq postgres
pg_restore: [archiver (db)] could not execute query: ERROR: relation "country_country_id_seq" does not exist
LINE 1: SELECT pg_catalog.setval('country_country_id_seq', 109, true...
^
Command was: SELECT pg_catalog.setval('country_country_id_seq', 109, true);
pg_restore: processing data for table "public.customer"
pg_restore: [archiver (db)] Error from TOC entry 2608; 0 16419 TABLE DATA customer postgres
pg_restore: [archiver (db)] could not execute query: ERROR: relation "customer" does not exist
Command was: COPY customer (customer_id, store_id, first_name, last_name, email, address_id, activebool, create_date, last_update, active) FROM stdin;
pg_restore: executing SEQUENCE SET customer_customer_id_seq
pg_restore: [archiver (db)] Error from TOC entry 2648; 0 0 SEQUENCE SET customer_customer_id_seq postgres
pg_restore: [archiver (db)] could not execute query: ERROR: relation "customer_customer_id_seq" does not exist
LINE 1: SELECT pg_catalog.setval('customer_customer_id_seq', 599, tr...
^
Command was: SELECT pg_catalog.setval('customer_customer_id_seq', 599, true);
pg_restore: processing data for table "public.film"
pg_restore: [archiver (db)] Error from TOC entry 2614; 0 16444 TABLE DATA film postgres
pg_restore: [archiver (db)] could not execute query: ERROR: relation "film" does not exist
Command was: COPY film (film_id, title, description, release_year, language_id, rental_duration, rental_rate, length, replacement_cost, rating, last_update, special_features, fulltext) FROM stdin;
pg_restore: processing data for table "public.film_actor"
pg_restore: [archiver (db)] Error from TOC entry 2615; 0 16456 TABLE DATA film_actor postgres
pg_restore: [archiver (db)] could not execute query: ERROR: relation "film_actor" does not exist
Command was: COPY film_actor (actor_id, film_id, last_update) FROM stdin;
pg_restore: processing data for table "public.film_category"
pg_restore: [archiver (db)] Error from TOC entry 2616; 0 16460 TABLE DATA film_category postgres
pg_restore: [archiver (db)] could not execute query: ERROR: relation "film_category" does not exist
Command was: COPY film_category (film_id, category_id, last_update) FROM stdin;
pg_restore: executing SEQUENCE SET film_film_id_seq
pg_restore: [archiver (db)] Error from TOC entry 2649; 0 0 SEQUENCE SET film_film_id_seq postgres
pg_restore: [archiver (db)] could not execute query: ERROR: relation "film_film_id_seq" does not exist
LINE 1: SELECT pg_catalog.setval('film_film_id_seq', 1000, true);
^
Command was: SELECT pg_catalog.setval('film_film_id_seq', 1000, true);
pg_restore: processing data for table "public.inventory"
pg_restore: [archiver (db)] Error from TOC entry 2624; 0 16502 TABLE DATA inventory postgres
pg_restore: [archiver (db)] could not execute query: ERROR: relation "inventory" does not exist
Command was: COPY inventory (inventory_id, film_id, store_id, last_update) FROM stdin;
pg_restore: executing SEQUENCE SET inventory_inventory_id_seq
pg_restore: [archiver (db)] Error from TOC entry 2650; 0 0 SEQUENCE SET inventory_inventory_id_seq postgres
pg_restore: [archiver (db)] could not execute query: ERROR: relation "inventory_inventory_id_seq" does not exist
LINE 1: SELECT pg_catalog.setval('inventory_inventory_id_seq', 4581,...
^
Command was: SELECT pg_catalog.setval('inventory_inventory_id_seq', 4581, true);
pg_restore: processing data for table "public.language"
pg_restore: [archiver (db)] Error from TOC entry 2626; 0 16509 TABLE DATA language postgres
pg_restore: [archiver (db)] could not execute query: ERROR: relation "language" does not exist
Command was: COPY language (language_id, name, last_update) FROM stdin;
pg_restore: executing SEQUENCE SET language_language_id_seq
pg_restore: [archiver (db)] Error from TOC entry 2651; 0 0 SEQUENCE SET language_language_id_seq postgres
pg_restore: [archiver (db)] could not execute query: ERROR: relation "language_language_id_seq" does not exist
LINE 1: SELECT pg_catalog.setval('language_language_id_seq', 6, true...
^
Command was: SELECT pg_catalog.setval('language_language_id_seq', 6, true);
pg_restore: processing data for table "public.payment"
pg_restore: [archiver (db)] Error from TOC entry 2628; 0 16521 TABLE DATA payment postgres
pg_restore: [archiver (db)] could not execute query: ERROR: relation "payment" does not exist
Command was: COPY payment (payment_id, customer_id, staff_id, rental_id, amount, payment_date) FROM stdin;
pg_restore: executing SEQUENCE SET payment_payment_id_seq
pg_restore: [archiver (db)] Error from TOC entry 2652; 0 0 SEQUENCE SET payment_payment_id_seq postgres
pg_restore: [archiver (db)] could not execute query: ERROR: relation "payment_payment_id_seq" does not exist
LINE 1: SELECT pg_catalog.setval('payment_payment_id_seq', 32098, tr...
^
Command was: SELECT pg_catalog.setval('payment_payment_id_seq', 32098, true);
pg_restore: processing data for table "public.rental"
pg_restore: [archiver (db)] Error from TOC entry 2630; 0 16527 TABLE DATA rental postgres
pg_restore: [archiver (db)] could not execute query: ERROR: relation "rental" does not exist
Command was: COPY rental (rental_id, rental_date, inventory_id, customer_id, return_date, staff_id, last_update) FROM stdin;
pg_restore: executing SEQUENCE SET rental_rental_id_seq
pg_restore: [archiver (db)] Error from TOC entry 2653; 0 0 SEQUENCE SET rental_rental_id_seq postgres
pg_restore: [archiver (db)] could not execute query: ERROR: relation "rental_rental_id_seq" does not exist
LINE 1: SELECT pg_catalog.setval('rental_rental_id_seq', 16049, true...
^
Command was: SELECT pg_catalog.setval('rental_rental_id_seq', 16049, true);
pg_restore: processing data for table "public.staff"
pg_restore: [archiver (db)] Error from TOC entry 2632; 0 16539 TABLE DATA staff postgres
pg_restore: [archiver (db)] could not execute query: ERROR: relation "staff" does not exist
Command was: COPY staff (staff_id, first_name, last_name, address_id, email, store_id, active, username, password, last_update, picture) FROM stdin;
pg_restore: executing SEQUENCE SET staff_staff_id_seq
pg_restore: [archiver (db)] Error from TOC entry 2654; 0 0 SEQUENCE SET staff_staff_id_seq postgres
pg_restore: [archiver (db)] could not execute query: ERROR: relation "staff_staff_id_seq" does not exist
LINE 1: SELECT pg_catalog.setval('staff_staff_id_seq', 2, true);
^
Command was: SELECT pg_catalog.setval('staff_staff_id_seq', 2, true);
pg_restore: processing data for table "public.store"
pg_restore: [archiver (db)] Error from TOC entry 2634; 0 16550 TABLE DATA store postgres
pg_restore: [archiver (db)] could not execute query: ERROR: relation "store" does not exist
Command was: COPY store (store_id, manager_staff_id, address_id, last_update) FROM stdin;
pg_restore: executing SEQUENCE SET store_store_id_seq
pg_restore: [archiver (db)] Error from TOC entry 2655; 0 0 SEQUENCE SET store_store_id_seq postgres
pg_restore: [archiver (db)] could not execute query: ERROR: relation "store_store_id_seq" does not exist
LINE 1: SELECT pg_catalog.setval('store_store_id_seq', 2, true);
^
Command was: SELECT pg_catalog.setval('store_store_id_seq', 2, true);
WARNING: errors ignored on restore: 28
EDIT:
I've tried deleting and re-adding the database twice and I still get the same error. I also tried reinstalling pgAdmin once. I've also completely rebooted the computer since then. I also just verified that other tar files aren't working
Please go to the file -> Preferences -> Paths -> Binary Paths Select the following paths
pg_restore: creating FK CONSTRAINT "public.fk_id_grupa_tipa"
pg_restore: creating FK CONSTRAINT
"public.fk_id_izmenio_evaluacija_iop" pg_restore: [archiver (db)]
Error from TOC entry 3540; 2606 218283 FK CONSTRAINT
fk_id_izmenio_evaluacija_iop postgres pg_restore: [archiver (db)]
could not execute query: ERROR: insert or update on table
"evaluacija_iop" violates foreign key constraint
"fk_id_izmenio_evaluacija_iop" DETAIL: Key (id_izmenio)=(1) is not
present in table "nastavnik".
Command was: ALTER TABLE ONLY public.evaluacija_iop
ADD CONSTRAINT fk_id_izmenio_evaluacija_iop FOREIGN KEY (id_izmenio) REFERENCES p... pg_restore: creating FK CONSTRAINT
"public.fk_id_izmenio_licni_cek_lista_iop" pg_restore: [archiver (db)]
Error from TOC entry 3528; 2606 218288 FK CONSTRAINT
fk_id_izmenio_licni_cek_lista_iop postgres pg_restore: [archiver (db)]
could not execute query: ERROR: insert or update on table
"cek_lista_iop" violates foreign key constraint
"fk_id_izmenio_licni_cek_lista_iop" DETAIL: Key (id_izmenio)=(1) is
not present in table "nastavnik".
Command was: ALTER TABLE ONLY public.cek_lista_iop
ADD CONSTRAINT fk_id_izmenio_licni_cek_lista_iop FOREIGN KEY (id_izmenio) REFERENC... pg_restore: creating FK CONSTRAINT
"public.fk_id_izmenio_licni_planirane_mere_iop" pg_restore: [archiver
(db)] Error from TOC entry 3611; 2606 218293 FK CONSTRAINT
fk_id_izmenio_licni_planirane_mere_iop postgres pg_restore: [archiver
(db)] could not execute query: ERROR: insert or update on table
"planirane_mere_iop" violates foreign key constraint
"fk_id_izmenio_licni_planirane_mere_iop" DETAIL: Key (id_izmenio)=(1)
is not present in table "nastavnik".
Command was: ALTER TABLE ONLY public.planirane_mere_iop
ADD CONSTRAINT fk_id_izmenio_licni_planirane_mere_iop FOREIGN KEY (id_izmenio... pg_restore: creating FK CONSTRAINT
"public.fk_id_izmenio_licni_podaci_iop" pg_restore: [archiver (db)]
Error from TOC entry 3566; 2606 218298 FK CONSTRAINT
fk_id_izmenio_licni_podaci_iop postgres pg_restore: [archiver (db)]
could not execute query: ERROR: insert or update on table
"licni_podaci_iop" violates foreign key constraint
"fk_id_izmenio_licni_podaci_iop" DETAIL: Key (id_izmenio)=(1) is not
present in table "nastavnik".
Command was: ALTER TABLE ONLY public.licni_podaci_iop
ADD CONSTRAINT fk_id_izmenio_licni_podaci_iop FOREIGN KEY (id_izmenio) REFERENC... pg_restore: creating FK CONSTRAINT
"public.fk_id_izmenio_planirane_mere_iop" pg_restore: [archiver (db)]
Error from TOC entry 3587; 2606 218303 FK CONSTRAINT
fk_id_izmenio_planirane_mere_iop postgres pg_restore: [archiver (db)]
could not execute query: ERROR: insert or update on table
"pedagoski_profil_iop" violates foreign key constraint
"fk_id_izmenio_planirane_mere_iop" DETAIL: Key (id_izmenio)=(1) is
not present in table "nastavnik".
Command was: ALTER TABLE ONLY public.pedagoski_profil_iop
ADD CONSTRAINT fk_id_izmenio_planirane_mere_iop FOREIGN KEY (id_izmenio) RE... pg_restore: creating FK CONSTRAINT
"public.fk_id_izmenio_planirane_mere_iop" pg_restore: [archiver (db)]
Error from TOC entry 3592; 2606 218308 FK CONSTRAINT
fk_id_izmenio_planirane_mere_iop postgres pg_restore: [archiver (db)]
could not execute query: ERROR: insert or update on table
"plan_aktivnosti_iop" violates foreign key constraint
"fk_id_izmenio_planirane_mere_iop" DETAIL: Key (id_izmenio)=(1) is
not present in table "nastavnik".
Command was: ALTER TABLE ONLY public.plan_aktivnosti_iop
ADD CONSTRAINT fk_id_izmenio_planirane_mere_iop FOREIGN KEY (id_izmenio) REF... pg_restore: creating FK CONSTRAINT
"public.fk_id_izmenio_saglasnost_roditelja_iop" pg_restore: [archiver
(db)] Error from TOC entry 3674; 2606 218313 FK CONSTRAINT
fk_id_izmenio_saglasnost_roditelja_iop postgres pg_restore: [archiver
(db)] could not execute query: ERROR: insert or update on table
"saglasnost_roditelja_iop" violates foreign key constraint
"fk_id_izmenio_saglasnost_roditelja_iop" DETAIL: Key (id_izmenio)=(1)
is not present in table "nastavnik".
Command was: ALTER TABLE ONLY public.saglasnost_roditelja_iop
ADD CONSTRAINT fk_id_izmenio_saglasnost_roditelja_iop FOREIGN KEY (id_i...
Why this is happening??
I have a postgres db for my backend hosted in Heroku. I am changing vps now to a different vendor altogether.
I used following commands:
heroku pg:backups:capture
heroku pg:backups:download
to take dump file, and than ran the following comamnd to pg_restore to remote vps postgres (I have ssh to remote server):
pg_restore --verbose --clean --no-acl -h localhost -p 5444 -d databasename -U databaseuser latest.dump --no-owner -x
I get the following message/errors:
pg_restore: creating INDEX "public.partners_address_e9624195"
pg_restore: [archiver (db)] Error from TOC entry 5465; 1259 6124214 INDEX partners_address_e9624195 vumqvdyhbbakqw
pg_restore: [archiver (db)] could not execute query: ERROR: relation "public.partners_address" does not exist
Command was: CREATE INDEX "partners_address_e9624195" ON "public"."partners_address" USING "btree" ("businesses_id");
pg_restore: creating INDEX "public.partners_address_latitude_38918148755fccdf_uniq"
pg_restore: [archiver (db)] Error from TOC entry 5466; 1259 6124984 INDEX partners_address_latitude_38918148755fccdf_uniq vumqvdyhbbakqw
pg_restore: [archiver (db)] could not execute query: ERROR: relation "public.partners_address" does not exist
Command was: CREATE INDEX "partners_address_latitude_38918148755fccdf_uniq" ON "public"."partners_address" USING "btree" ("latitude");
pg_restore: creating INDEX "public.partners_address_location_id"
pg_restore: [archiver (db)] Error from TOC entry 5467; 1259 6124734 INDEX partners_address_location_id vumqvdyhbbakqw
pg_restore: [archiver (db)] could not execute query: ERROR: relation "public.partners_address" does not exist
Command was: CREATE INDEX "partners_address_location_id" ON "public"."partners_address" USING "gist" ("location");
pg_restore: creating INDEX "public.partners_address_longitude_6a1bd0c5aaf227a5_uniq"
pg_restore: [archiver (db)] Error from TOC entry 5468; 1259 6124985 INDEX partners_address_longitude_6a1bd0c5aaf227a5_uniq vumqvdyhbbakqw
pg_restore: [archiver (db)] could not execute query: ERROR: relation "public.partners_address" does not exist
Command was: CREATE INDEX "partners_address_longitude_6a1bd0c5aaf227a5_uniq" ON "public"."partners_address" USING "btree" ("longitude");
pg_restore: creating INDEX "public.partners_addressdummy_location_id"
pg_restore: [archiver (db)] Error from TOC entry 5484; 1259 6124296 INDEX partners_addressdummy_location_id vumqvdyhbbakqw
pg_restore: [archiver (db)] could not execute query: ERROR: relation "public.partners_addressdummy" does not exist
Command was: CREATE INDEX "partners_addressdummy_location_id" ON "public"."partners_addressdummy" USING "gist" ("location");
pg_restore: creating FK CONSTRAINT "public.partners_company partners_com_partner_id_68062c1b87fe6c02_fk_partners_partner_id"
pg_restore: creating FK CONSTRAINT "public.partners_companybankinginformation partners_comp_company_id_a85698afe499099_fk_partners_company_id"
pg_restore: creating FK CONSTRAINT "public.partners_fitnessinstantflooroffer partners_fi_business_id_db86587ff737cea_fk_partners_business_id"
pg_restore: creating FK CONSTRAINT "public.partners_partneraddons partners_par_addon_id_9f51a49f7df191c_fk_partners_addonmodel_id"
pg_restore: creating FK CONSTRAINT "public.partners_partneraddons partners_par_partner_id_409ed0f55743b48e_fk_partners_partner_id"
pg_restore: creating FK CONSTRAINT "public.partners_partner partners_partner_user_id_ca28b796442d283_fk_auth_user_id"
pg_restore: creating FK CONSTRAINT "public.partners_salonmenu partners_s_business_id_2e0ca679b0a24854_fk_partners_business_id"
pg_restore: creating FK CONSTRAINT "public.partners_sixdigitcode partners_s_business_id_345f911c3107973d_fk_partners_business_id"
pg_restore: creating FK CONSTRAINT "public.partners_trackbusinessdetails partners_t_business_id_1eb5c6794f6b1ada_fk_partners_business_id"
pg_restore: creating FK CONSTRAINT "public.recurrence_date recu_recurrence_id_4b67510aee5dda10_fk_recurrence_recurrence_id"
pg_restore: creating FK CONSTRAINT "public.recurrence_rule recu_recurrence_id_7ff1cb1803879eea_fk_recurrence_recurrence_id"
pg_restore: creating FK CONSTRAINT "public.recurrence_param recurrence_param_rule_id_5163400228e5d6ac_fk_recurrence_rule_id"
pg_restore: creating FK CONSTRAINT "public.social_auth_usersocialauth social_auth_usersocial_user_id_5af7eafade59e216_fk_auth_user_id"
WARNING: errors ignored on restore: 335
This operation was performed on an empty database. What am I doing wrong?
Help please!
Thanks
Dump Commond:
pg_dump -Fc test > /home/backup/test4.sql.gz
Restore Commond:
bash-4.1$ pg_restore -d test /home/backup/test4.sql.gz
pg_restore: [archiver (db)] Error while PROCESSING TOC:
pg_restore: [archiver (db)] Error from TOC entry 2408; 0 666136 TABLE DATA pat postgres
pg_restore: [archiver (db)] COPY failed for table "pat": ERROR: pattern_in is not implemented
CONTEXT: COPY pat, line 1, column ptn: "((0.244171, 0.008272, 0.021515, -0.012174, 0.068765, 0.076409, 0.016820, 0.021921, 0.114738, 0.12366..."
pg_restore: [archiver (db)] Error from TOC entry 2445; 0 4877471 TABLE DATA pat_303816 postgres
pg_restore: [archiver (db)] COPY failed for table "pat_303816": ERROR: pattern_in is not implemented
CONTEXT: COPY pat_303816, line 1, column ptn: "((0.446228, -0.151998, -0.054444, -0.095391, 0.027121, 0.028324, 0.017388, 0.133117, 0.008461, 0.012..."
pg_restore: [archiver (db)] Error from TOC entry 2441; 0 4800536 TABLE DATA pat_402653 postgres
pg_restore: [archiver (db)] COPY failed for table "pat_402653": ERROR: pattern_in is not implemented
CONTEXT: COPY pat_402653, line 1, column ptn: "((0.505515, 0.040819, 0.057495, 0.044649, 0.065036, 0.021012, 0.006341, 0.045162, 0.061616, 0.085675..."
pg_restore: [archiver (db)] Error from TOC entry 2449; 0 4878143 TABLE DATA pat_452238 postgres
pg_restore: [archiver (db)] COPY failed for table "pat_452238": ERROR: pattern_in is not implemented
CONTEXT: COPY pat_452238, line 1, column ptn: "((0.124739, -0.015536, 0.045421, 0.013990, 0.000782, 0.013343, 0.018824, 0.002218, 0.009941, 0.01699..."
WARNING: errors ignored on restore: 4
If I'm not mistaken, one of your views is referencing a function called pattern_in.
You're missing an extension in your database. You'll need to run CREATE EXTENSION foo after creating the database, but before restoring your database from backup. Where foo is the name of the extension that provides the pattern_in function; I think it could be this one.
I'm trying to restore a table in a db in postgres from a .sql file.
I used command pg_restore -d dbName file.sql. The user is a superuser. But I got several errors:
pg_restore: [archiver (db)] Error while PROCESSING TOC:
pg_restore: [archiver (db)] Error from TOC entry 359; 1259 499945 TABLE fuller4t7 someName
pg_restore: [archiver (db)] could not execute query: ERROR: permission denied to create "pg_catalog.fuller4t7"
DETAIL: System catalog modifications are currently disallowed.
Command was: CREATE TABLE fuller4t7 (
gid integer NOT NULL,
geom public.geometry(MultiPolygon,4326)
);
Other errors are related with this one since the table was not created in the first place. I'm wondering what these errors mean. I'm using postgres 9.4 and I have PostGIS extensions added to the particular database.