Re: Temp tables and copy
От | Richard Huxton |
---|---|
Тема | Re: Temp tables and copy |
Дата | |
Msg-id | 200309100920.51597.dev@archonet.com обсуждение исходный текст |
Ответ на | Temp tables and copy ("Konstantin Goudkov" <bcc-ng@idftech.com>) |
Список | pgsql-general |
On Wednesday 10 September 2003 02:22, Konstantin Goudkov wrote: > I posted it to the pgsql-hackers list, but I did not seem to get through. > > Not even sure if this is a bug or a feature :) > > When I create a temp table and then try to copy some data into the > table, if the data is corrupt and the synchronization is lost - the > table also seems to get lost. A message like this? lost synchronization with server, resetting connection Temporary tables get removed when the connection is broken. In any case, all or nothing of the COPY ... FROM should work, so you can't check what was the first item that failed. If you use the \i from psql's command line you can get line numbers for the file, or "psql -f filename" will do the same. PS - I've found that writing a small Perl script to process import files and fix bugs saves me time. It takes longer the first time, but if I need to re-import (and it seems I always do) then I can just run the perl over my source data. -- Richard Huxton Archonet Ltd
В списке pgsql-general по дате отправления: