Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 8CAB468DFC for ; Wed, 16 May 2012 07:47:57 -0300 (ADT) Received: from exprod7og118.obsmtp.com ([64.18.2.8]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SUblr-00033Z-JI for pgsql-bugs@postgresql.org; Wed, 16 May 2012 10:47:57 +0000 Received: from mail-lb0-f180.google.com ([209.85.217.180]) (using TLSv1) by exprod7ob118.postini.com ([64.18.6.12]) with SMTP ID DSNKT7OFzRyGfowLc3Qcap9Xd9T86rIc5O1U@postini.com; Wed, 16 May 2012 03:47:55 PDT Received: by lbbgh12 with SMTP id gh12so367968lbb.25 for ; Wed, 16 May 2012 03:47:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=waR14KGiaPo02Cv31IiQ2vj0owTUZ8wT5k2Rf7m244s=; b=OO91d2KnYmSDI3r6nKPjYPQ2v3TaIeR2qPfAK0s/l7/FH92xeI5HJwhQkDp0v9I+by qiDs14kOhpisclwEBMB6mnYXU5pq2Y/8OV427nfsjG9Ck5Ia1sj25YTh+xj6Y3w8fuaB SaA7jTL9K/tGEpID9sRzsaB/rOXwm0V6enrbTlao/vyLEgHMbMxyAWLHuAy1GE8t+cI+ raWK5T1kYXChvPrp9/hmFjE4UYX2jr9+D+VPKLVFANgU1LS14TZan6tie6g3VstvDi14 U+d1VaVH/2qyIK0BOdt8hIFUK09UMKDoqqUSgyqcEps7JY1MQvyRe4JZzubrfTIWF0K9 LGog== Received: by 10.112.103.130 with SMTP id fw2mr1047146lbb.107.1337165260337; Wed, 16 May 2012 03:47:40 -0700 (PDT) Received: from [192.168.1.102] (dsl-hkibrasgw2-ff6cc300-200.dhcp.inet.fi. [88.195.108.200]) by mx.google.com with ESMTPS id h6sm3043824lbl.13.2012.05.16.03.47.38 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 16 May 2012 03:47:39 -0700 (PDT) Message-ID: <4FB385C9.8050001@enterprisedb.com> Date: Wed, 16 May 2012 13:47:37 +0300 From: Heikki Linnakangas User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.4) Gecko/20120510 Icedove/10.0.4 MIME-Version: 1.0 To: katsumata.tomonari@po.ntts.co.jp CC: pgsql-bugs@postgresql.org Subject: Re: BUG #6643: [PostgreSQL9.2beta1] COPY after changing fillfactor gets a PANIC. References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQlXLcV2OJCbs4kmy3k0r1ZrDNoYq0MfVgj5U1XfTn3nrV7bM9Mnh81pLqSKvDRjfWR+YvTG X-Pg-Spam-Score: -4.2 (----) X-Archive-Number: 201205/90 X-Sequence-Number: 33061 On 16.05.2012 13:39, katsumata.tomonari@po.ntts.co.jp wrote: > Now, I'm testing PostgreSQL 9.2 Beta 1. > And I have a problem. > > Steps to procedure are bellow. > > 1. CREATE DATABASE > export LANG=C > initdb -D $PGDATA -E SQL_ASCII > pg_ctl start > createdb testdb > > 2. CREATE TABLE > psql -d testdb -f ./create_table_customer.sql > > 3. ALTER TABLE(fillfactor) > psql -d testdb -c "ALTER TABLE customer SET (fillfactor=90);" > > 4. LOAD DATA > (please set correct path to customer.data) > psql -d testdb -f ./customer.sql > > Then, I have a PANIC error. > ============================== > BEGIN > TRUNCATE TABLE > PANIC: failed to add tuple to page > CONTEXT: COPY customer, line 296: > "296>ALNGAT>alngat>EgBEEAyXVIAWBE>KCiDDFsqA8Kv>2586068>4067234479>ALNGAT@kuvkaEEyi>20100905>20101023>..." > STATEMENT: COPY customer FROM > '/home/katsumata/work/2012/20120516_PG92beta1_bug1/copy_panic_dbt1/copy_panic/customer.data' > WITH DELIMITER '>'; > psql:./customer.sql:3: PANIC: failed to add tuple to page > CONTEXT: COPY customer, line 296: > "296>ALNGAT>alngat>EgBEEAyXVIAWBE>KCiDDFsqA8Kv>2586068>4067234479>ALNGAT@kuvkaEEyi>20100905>20101023>..." > PANIC: failed to add tuple to page > CONTEXT: COPY customer, line 296: > "296>ALNGAT>alngat>EgBEEAyXVIAWBE>KCiDDFsqA8Kv>2586068>4067234479>ALNGAT@kuvkaEEyi>20100905>20101023>..." > psql:./customer.sql:3: connection to server was lost > ============================== > > If I skip the 3rd step(ALTER TABLE(fillfactor)), > I don't have any ERROR. > And It's also OK on PostgreSQL 9.1.3. > > Are there any changes about this behavior ? This sounds like a bug in the new page-at-a-time behavior in COPY. Can you send me a self-contained test, including the test data? -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com