Overriding default psql behavior | how to ignore missing fields - Mailing list pgsql-general

From Håvard Wahl Kongsgård
Subject Overriding default psql behavior | how to ignore missing fields
Date
Msg-id AANLkTimXQEmZz_0TzQDUZke7a81Z9VgtYKgNPnu6aKhE@mail.gmail.com
Whole thread Raw
Responses Re: Overriding default psql behavior | how to ignore missing fields  (Vick Khera <vivek@khera.org>)
List pgsql-general
Hi,
I am trying to insert new records from multiple SQL dumps into an existing table. My problem is that the database table does not have some of the columns used in the sql dumps. So when I try to import the dumps psql fails with: "ERROR:  current transaction is aborted, commands ignored until end of transaction block"

As there are thousands of files with multiple missing fields, manually adding every field to the table is not a option.

Is it possible to overriding the default psql behavior, so that the sql session simply ignores any missing fields?

--
Håvard Wahl Kongsgård

http://havard.security-review.net/

pgsql-general by date:

Previous
From: Vincent Veyron
Date:
Subject: Re: Restore problem
Next
From: Dmitriy Igrishin
Date:
Subject: Re: Row-level permissions?