| From: | "Wang, Mary Y" <mary(dot)y(dot)wang(at)boeing(dot)com> |
|---|---|
| To: | "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org> |
| Subject: | Does psql -f quit insertion after an error in a statement has been detected? |
| Date: | 2010-06-06 21:29:00 |
| Message-ID: | FA20D4C4FEBFD148B1C0CB09913825FC04589DD9CE@XCH-SW-06V.sw.nos.boeing.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Hi,
I'm using a psql -f command to reload the data from a dump file. I noticed that some tables are not populated with any rows (I mean 0 rows), yet, if I manually insert a row (actually just copy an INSERT statement from that input file) in the interactive terminal, that row was added with no problem. So my question "does psql -f quits inserting rows for a table when it detects there is an error in a statement?". The impression that I got is that even though other rows might not have any errors, but psql -f seems just quits after it detects an error in a row.
Am I missing something here?
Thanks
Mary
| From | Date | Subject | |
|---|---|---|---|
| Next Message | John R Pierce | 2010-06-06 21:59:22 | Re: Does psql -f quit insertion after an error in a statement has been detected? |
| Previous Message | Nilesh Govindarajan | 2010-06-06 16:34:16 | Re: Difference between these two queries ? |