Re: [ADMIN] COPY FROM command v8.1.4

2006-09-26 Thread theman
ssage- From: Tom Lane [mailto:[EMAIL PROTECTED] Sent: Saturday, September 23, 2006 1:41 PM To: Ray Stell Cc: theman; pgsql-admin@postgresql.org Subject: Re: [ADMIN] COPY FROM command v8.1.4 Ray Stell <[EMAIL PROTECTED]> writes: > Curious how you get to an OS kernel bug from these writes?

Re: [ADMIN] COPY FROM command v8.1.4

2006-09-23 Thread Tom Lane
Ray Stell <[EMAIL PROTECTED]> writes: > Curious how you get to an OS kernel bug from these writes? Note the two successive lseek's returning the same result. With a write() in between that should have extended the file, that is clearly the wrong answer. Subsequent discussion reveals that Dan is

Re: [ADMIN] COPY FROM command v8.1.4

2006-09-23 Thread Ray Stell
Curious how you get to an OS kernel bug from these writes? Aren't we missing the associated db reads in this trc data? Maybe there been other data provided off the list? Would love to see it. Thanks. On Fri, Sep 22, 2006 at 05:59:31PM -0400, Tom Lane wrote: > "theman" <[EMAIL PROTECTED]> wr

Re: [ADMIN] COPY FROM command v8.1.4

2006-09-22 Thread Tom Lane
"theman" <[EMAIL PROTECTED]> writes: > lseek(10, 0, SEEK_END) = 913072128 > write(10, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 8192) > = 8192 > lseek(10, 0, SEEK_END) = 913080320 > write(10, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0

Re: [ADMIN] COPY FROM command v8.1.4

2006-09-20 Thread Mr. Dan
Tom Lane <[EMAIL PROTECTED]> To: "Mr. Dan" <[EMAIL PROTECTED]> CC: pgsql-admin@postgresql.org Subject: Re: [ADMIN] COPY FROM command v8.1.4 Date: Wed, 13 Sep 2006 12:50:26 -0400 "Mr. Dan" <[EMAIL PROTECTED]> writes: >> How are you doing the copies, exact

Re: [ADMIN] COPY FROM command v8.1.4

2006-09-20 Thread Ray Stell
Could you please keep this inline. Is there some reason the community should not be able to read about debug logic? I asked this question last week, no reply. Now, Mr. Dan is asking the same. 'What is the logic being followed here by ctid verification? You collect from the original db the loc

Re: [ADMIN] COPY FROM command v8.1.4

2006-09-19 Thread Mr. Dan
Hi Tom, Sorry - to all my groupies out there for the time delay :) - It's a rather time consuming endeavor. Ok the ctid numbers did all seem to match for the group of 25 rows that disappear. For example., ctiid (146649,1) to (146649,25) represented a group or block of 25 rows that go missi

Re: [ADMIN] COPY FROM command v8.1.4

2006-09-18 Thread Robert Reeves
Hi, Any update on this ? --robert -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mr. Dan Sent: Thursday, 14 September 2006 11:14 PM To: pgsql-admin@postgresql.org Subject: Re: [ADMIN] COPY FROM command v8.1.4 Hi Ray, I've tried "it" on

Re: [ADMIN] COPY FROM command v8.1.4

2006-09-14 Thread Mr. Dan
Hi Ray, I've tried "it" on both WAFL and Reiser filesystems and gotten either 0,1, or 2 blocks of 25 rows missing. I haven't tried it on ext3 or JFS. No, I haven't seen any problems in the syslogs and I haven't seen any drops on the network in regards to WAFL. Reiser is the local filesyste

Re: [ADMIN] COPY FROM command v8.1.4

2006-09-13 Thread Ray Stell
You said "local Reiser FS." Maybe repeat on one of the others, Ext3/JFS? Tom asked about hardware issues, is there nothing in syslog that relates to the timing of the event? I don't recall you responding in public to this. Maybe I missed it. Just musing... On Wed, Sep 13, 2006 at 12:5

Re: [ADMIN] COPY FROM command v8.1.4

2006-09-13 Thread Tom Lane
"Mr. Dan" <[EMAIL PROTECTED]> writes: >> How are you doing the copies, exactly? SQL COPY command, psql \copy, >> something else? > We've tried SQL COY and psql \copy and always get random results - 0,1, or 2 > blocks of 25 rows missing. Hmph. If it happens with a SQL COPY command then psql see

Re: [ADMIN] COPY FROM command v8.1.4

2006-09-13 Thread Mr. Dan
This is pretty confusing. You mean that groups of 25 adjacent rows were missing in the output? Yes, isn't that interesting? It's always in a group of 25 rows. This is always random. Say 800,000 to 800,025 out of 12 million represents one random group of 25 rows. What's the (24+1) supp

Re: [ADMIN] COPY FROM command v8.1.4

2006-09-12 Thread Tom Lane
"Mr. Dan" <[EMAIL PROTECTED]> writes: > Looking back and comparing the data, we realized that its always missing > rows in 25 (24+1) rows sequences or we're calling it a block. So, there were > 2 blocks of 25 missing in the 2nd attempt and 4 blocks of 25 missing in the > third. This is pretty

[ADMIN] COPY FROM command v8.1.4

2006-09-12 Thread Mr. Dan
This behavior is on big tables. 6.5 GB - 12+ million records ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

[ADMIN] COPY FROM command v8.1.4

2006-09-12 Thread Mr. Dan
Yes - we are doing select count(*) fromÂ… the stats are worthless until you vacuum and we aren't running vacuum. Plus those change too often to be reliable, they just make a good guess ---(end of broadcast)--- TIP 9: In versions below 8.0, the pl

[ADMIN] COPY FROM command v8.1.4

2006-09-12 Thread Mr. Dan
No, there are different blocks of records missing every time. If you repeat the entire experiment, are the same records missing each time? I'm wondering about flaky hardware as much as anything. ---(end of broadcast)--- TIP 1: if posting/

[ADMIN] COPY FROM command v8.1.4

2006-09-12 Thread Mr. Dan
Hi, Thanks for this quick response. ##Try dumping the second table with COPY TO and diff'ing the dump files to get more detail about what's missing.## We tried 3 times from a local file system, instead of the NFS mount (to try to rule out hardware) 1st attempt: the data copied over fine 2

Fwd: [ADMIN] COPY FROM command v8.1.4

2006-09-12 Thread Peter Childs
Sorry Tom, Somone had not put the reply to header in correctly.. -- Forwarded message -- From: Peter Childs <[EMAIL PROTECTED]> Date: 12-Sep-2006 10:16 Subject: Re: [ADMIN] COPY FROM command v8.1.4 To: Tom Lane <[EMAIL PROTECTED]> On 11/09/06, Tom Lane <[

Re: [ADMIN] COPY FROM command v8.1.4

2006-09-11 Thread Tom Lane
"Mr. Dan" <[EMAIL PROTECTED]> 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.

[ADMIN] COPY FROM command v8.1.4

2006-09-11 Thread Mr. Dan
We are having some serious problems with the PostgreSQL COPY FROM command and we have no clue what to do with this at this point. I think we need to ask for 'guru' help in diagnosing this problem. Here is exactly what we are doing: We have a table with 12028587 records in it. We do a COPY TO f