Re: [GENERAL] Does psql -f quit insertion after an error in a statement has been detected?

2010-07-03 Thread Bruce Momjian
Wang, Mary Y wrote: > 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 termina

Re: [GENERAL] Does psql -f quit insertion after an error in a statement has been detected?

2010-06-07 Thread Adrian Klaver
On 06/07/2010 02:10 PM, Wang, Mary Y wrote: That's good to know. I ended up manually copy/paste INSERT statements for each table to another file and rerun the psql -f again. It was painful! Mary For future reference you could do something like: pg_dump -a -t table_name -f table_name_data.s

Re: [GENERAL] Does psql -f quit insertion after an error in a statement has been detected?

2010-06-07 Thread Wang, Mary Y
Sent: Monday, June 07, 2010 11:21 AM To: pgsql-general@postgresql.org Subject: Re: [GENERAL] Does psql -f quit insertion after an error in a statement has been detected? On Sun, Jun 6, 2010 at 5:29 PM, Wang, Mary Y wrote: > I'm using a psql -f command to reload the data from a dump fil

Re: [GENERAL] Does psql -f quit insertion after an error in a statement has been detected?

2010-06-07 Thread Vick Khera
On Sun, Jun 6, 2010 at 5:29 PM, Wang, Mary Y wrote: > 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)

Re: [GENERAL] Does psql -f quit insertion after an error in a statement has been detected?

2010-06-06 Thread John R Pierce
Wang, Mary Y wrote: 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

[GENERAL] Does psql -f quit insertion after an error in a statement has been detected?

2010-06-06 Thread Wang, Mary Y
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