Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VEexm-0003Lm-K9 for pgsql-bugs@arkaria.postgresql.org; Wed, 28 Aug 2013 12:35:06 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VEexm-0002SY-4F for pgsql-bugs@arkaria.postgresql.org; Wed, 28 Aug 2013 12:35:06 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VEexl-0002S9-Fq for pgsql-bugs@postgresql.org; Wed, 28 Aug 2013 12:35:05 +0000 Received: from smtp-outbound-2.vmware.com ([208.91.2.13]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VEexi-0002vj-Jh for pgsql-bugs@postgresql.org; Wed, 28 Aug 2013 12:35:05 +0000 Received: from sc9-mailhost3.vmware.com (sc9-mailhost3.vmware.com [10.113.161.73]) by smtp-outbound-2.vmware.com (Postfix) with ESMTP id 0ED1029424; Wed, 28 Aug 2013 05:35:01 -0700 (PDT) Received: from zcs-prod-ext-mta-1.vmware.com (zcs-prod-ext-mta-1.vmware.com [10.113.62.223]) by sc9-mailhost3.vmware.com (Postfix) with ESMTP id 08A3C40408; Wed, 28 Aug 2013 05:35:01 -0700 (PDT) Received: from zcs-prod-ext-mta-1.vmware.com (localhost.localdomain [127.0.0.1]) by zcs-prod-ext-mta-1.vmware.com (Postfix) with ESMTP id 7D886120030; Wed, 28 Aug 2013 05:41:46 -0700 (PDT) Received: from [192.168.1.90] (zimbra-prod-ext-proxy-vip.vmware.com [10.113.63.87]) by zcs-prod-ext-mta-1.vmware.com (Postfix) with ESMTPSA; Wed, 28 Aug 2013 05:41:45 -0700 (PDT) Message-ID: <521DEE72.7070002@vmware.com> Date: Wed, 28 Aug 2013 15:34:58 +0300 From: Heikki Linnakangas Organization: VMware User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12 MIME-Version: 1.0 To: Valentine Gogichashvili CC: PostgreSQL Bugs , andres@2ndquadrant.com Subject: Re: BUG #7494: WAL replay speed depends heavily on the shared_buffers size References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -9.4 (---------) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 28.08.2013 02:28, Valentine Gogichashvili wrote: > Running this sproc on the master: > > CREATE OR REPLACE FUNCTION public.f() > RETURNS integer > LANGUAGE plpgsql > AS $function$ > begin > > CREATE TEMP TABLE temp_table_to_test_replication AS > SELECT s.i as id from generate_series(1, 100) as s(i); > DROP TABLE temp_table_to_test_replication; > RETURN 1; > end; > $function$ > > leads to writing of WAL files. Is it an expected behavior? Is it expected > that WAL files are filled when the only thing, that sproc is supposed to > do is to create and drop a temporary table. Are these catalog changes? Yep, creating/dropping temp tables are catalog changes, which are WAL-logged. - Heikki -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs