"Patrick L. Nolan" <pln@cosmic.stanford.edu> writes:
> I practiced running it on a small table and everything
> was OK. When I switched to a large table, with 100
> times as many rows, the program ran for a while and
> then said
> Killed
My guess is you're running out of memory on the client side.
Consider using a cursor so you can read the data in units
smaller than 14M rows at a time ...
regards, tom lane