pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <hlinnakangas@vmware.com>
To: Valentine Gogichashvili <valgog@gmail.com>
Cc: PostgreSQL Bugs <pgsql-bugs@postgresql.org>
Cc: andres@2ndquadrant.com
Subject: Re: BUG #7494: WAL replay speed depends heavily on the shared_buffers size
Date: Wed, 28 Aug 2013 15:34:58 +0300
Message-ID: <521DEE72.7070002@vmware.com> (raw)
In-Reply-To: <CAP93muUMiUSr4BKmpw-JGYpEnume4Scr=h6TG2y4=rpOJ+JSpQ@mail.gmail.com>
References: <CAP93muUMiUSr4BKmpw-JGYpEnume4Scr=h6TG2y4=rpOJ+JSpQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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



view thread (16+ messages)  latest in thread

Message-ID: <521DEE72.7070002@vmware.com>
Permalink:  ../521DEE72.7070002@vmware.com/
Also on:    postgresql.org/message-id/521DEE72.7070002@vmware.com

 · 

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-bugs@postgresql.org
  Cc: hlinnakangas@vmware.com, valgog@gmail.com, andres@2ndquadrant.com
  Subject: Re: BUG #7494: WAL replay speed depends heavily on the shared_buffers size
  In-Reply-To: <521DEE72.7070002@vmware.com>
  References: <CAP93muUMiUSr4BKmpw-JGYpEnume4Scr=h6TG2y4=rpOJ+JSpQ@mail.gmail.com> <521DEE72.7070002@vmware.com>

* 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