pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mr. Dan <bitsandbytes88@hotmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: COPY FROM command v8.1.4
Date: Mon, 11 Sep 2006 15:12:16 -0400
Message-ID: <5558.1158001936@sss.pgh.pa.us> (raw)
In-Reply-To: <BAY116-F16BCF6E15545D8EFE3AD3FD12A0@phx.gbl>
References: <BAY116-F16BCF6E15545D8EFE3AD3FD12A0@phx.gbl>

"Mr. Dan" <bitsandbytes88@hotmail.com> writes:
> We have a table with 12028587 records in it.
> We do a COPY TO file of the records for this table.
> We count the number of records in the file, it has 12028587 lines.
> We do a COPY FROM that file into a table with identical structure as the 
> first table.
> We count the number of records in the second table and there are only 
> 12028538 records.

Try dumping the second table with COPY TO and diff'ing the dump files
to get more detail about what's missing.

If you repeat the entire experiment, are the same records missing each
time?  I'm wondering about flaky hardware as much as anything.

			regards, tom lane



view thread (20+ messages)  latest in thread

Message-ID: <5558.1158001936@sss.pgh.pa.us>
Permalink:  ../5558.1158001936@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/5558.1158001936@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, bitsandbytes88@hotmail.com
  Subject: Re: COPY FROM command v8.1.4
  In-Reply-To: <5558.1158001936@sss.pgh.pa.us>
  References: <BAY116-F16BCF6E15545D8EFE3AD3FD12A0@phx.gbl> <5558.1158001936@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox