Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id B33FAB5DBCB for ; Tue, 2 Aug 2011 05:42:50 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 28453-06 for ; Tue, 2 Aug 2011 08:42:44 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-fx0-f46.google.com (mail-fx0-f46.google.com [209.85.161.46]) by mail.postgresql.org (Postfix) with ESMTP id 4A113B5DBC8 for ; Tue, 2 Aug 2011 05:42:44 -0300 (ADT) Received: by fxh19 with SMTP id 19so5400921fxh.19 for ; Tue, 02 Aug 2011 01:42:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=jcYWfY7Veuq4jgCid7PWAxjtHkQy7zipGopWWab+YOA=; b=xlQMglzby09q6rOGe1yFkO1ryKPvm0yJ9ncjUCKf7F88s6RdT11MDS5JI5mWMWiznr 6pfbOtMKhh6iZ98zk93H4Rsi5oKiSeGAF4kGtFZR+MbMpP9UrRVnnwjOi2n2q3KIYKgi 9dVXocwZ2+97T3hW1GPOtjNIoA/wfoLIN8nmA= Received: by 10.223.52.132 with SMTP id i4mr7799636fag.107.1312274563534; Tue, 02 Aug 2011 01:42:43 -0700 (PDT) Received: from [10.64.1.26] ([213.108.72.250]) by mx.google.com with ESMTPS id o18sm661960fal.23.2011.08.02.01.42.42 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 02 Aug 2011 01:42:42 -0700 (PDT) Message-ID: <4E37B882.8080005@gmail.com> Date: Tue, 02 Aug 2011 11:42:42 +0300 From: Vitalii Tymchyshyn User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110617 Lightning/1.0b2 Thunderbird/3.1.11 MIME-Version: 1.0 To: Robert Ayrapetyan CC: pgsql-performance@postgresql.org Subject: Re: Performance die when COPYing to table with bigint PK References: <4E366C9C.4040904@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.799 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_ENVFROM_END_DIGIT=0.1, FREEMAIL_FROM=0.001 X-Spam-Level: X-Archive-Number: 201108/18 X-Sequence-Number: 44465 02.08.11 11:26, Robert Ayrapetyan написав(ла): > Seems this assumption is not right. Just created simple index on > bigint column - situation with huge performance > degradation repeated. Dropping this index solved COPY issues on the fly. > So I'm still convinced - this bug relates to FreeBSD 64-bit + UFS + > bigint column index > (some of these may be superfluous, but I have no resources to check on > different platforms with different filesystems). Interrrresting. We also have FreeBSDx64 on UFS and are using bigint (bigserial) keys. It seems I will need to perform more tests here because I do see similar problems. I for sure can do a copy of data with int4 keys and test the performance. BTW: The thing we are going to try on next upgrade is to change UFS block size from 16K to 8K. What problem I saw is that with default setting, UFS needs to read additional 8K when postgresql writes it's page (and for index random writes can be vital). Unfortunately, such a changes requires partition reformat and I can't afford it for now. Best regards, Vitalii Tymchyshyn