pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: 德哥 <digoal@126.com>
To: Heikki Linnakangas <hlinnakangas@vmware.com>
Cc: Andres Freund <andres@2ndquadrant.com>
Cc: pgsql-bugs <pgsql-bugs@postgresql.org>
Subject: Re: BUG #10013: PostgreSQL 9.4 initdb FATAL: could not write to file "pg_xlog/xlogtemp.3590": No space left on devi
Date: Thu, 17 Apr 2014 08:16:08 +0800 (CST)
Message-ID: <2c0e50b0.f2.1456d0a648a.Coremail.digoal@126.com> (raw)
In-Reply-To: <534E6974.5020402@vmware.com>
References: <20140414014442.15385.74268@wrigleys.postgresql.org>
	<534E3222.609@vmware.com>
	<201404161620172127337@126.com>
	<534E607B.8050502@vmware.com>
	<20140416105916.GB16358@awork2.anarazel.de>
	<534E655A.8030200@vmware.com>
	<692e040.298db.1456a4197c1.Coremail.digoal@126.com>
	<534E6974.5020402@vmware.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

HI,


Use this snapshot  the problem fixed, thanks Heikki and Andres's help.


Use correctly-sized buffer when zero-filling a WAL file.
| author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | |
| | Wed, 16 Apr 2014 07:21:09 +0000 (10:21 +0300) |
| committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | |
| | Wed, 16 Apr 2014 07:26:36 +0000 (10:26 +0300) |
| commit | 848b9f05ab283724dd063d936a92568c1fdf422b |
| tree | e6f0804cb145b3c09841bc91a9dd6e07e5778551 | tree | snapshot |
| parent | ab76d8e9d672c661fe8ce4d9405dc8956b8ece9d | commit | diff |
Use correctly-sized buffer when zero-filling a WAL file.

I mixed up BLCKSZ and XLOG_BLCKSZ when I changed the way the buffer is
allocated a couple of weeks ago. With the default settings, they are both
8k, but they can be changed at compile-time.

| src/backend/access/transam/xlog.c | | diff | blob | blame | history |





--
公益是一辈子的事,I'm Digoal,Just Do It.




在 2014-04-16 07:28:52,"Heikki Linnakangas" <hlinnakangas@vmware.com> 写道:
>On 04/16/2014 02:17 PM, 德哥 wrote:
>> LOG:  write() in XLogFileInit returned 40960: Success
>
>Oh, that's interesting. Have you tweaked BLCKSZ or XLOG_BLCKSZ? If you 
>have, try with a fresh checkout - I just fixed a bug in that code where 
>I had used BLCKSZ instead of XLOG_BLCKSZ in the allocation of the 
>buffer. They're the same by default, but if you've changed them, that 
>might be it.
>
>- Heikki


view thread (15+ messages)

Message-ID: <2c0e50b0.f2.1456d0a648a.Coremail.digoal@126.com>
Permalink:  ../2c0e50b0.f2.1456d0a648a.Coremail.digoal@126.com/
Also on:    postgresql.org/message-id/2c0e50b0.f2.1456d0a648a.Coremail.digoal@126.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: digoal@126.com, hlinnakangas@vmware.com, andres@2ndquadrant.com
  Subject: Re: BUG #10013: PostgreSQL 9.4 initdb FATAL: could not write to file "pg_xlog/xlogtemp.3590": No space left on devi
  In-Reply-To: <2c0e50b0.f2.1456d0a648a.Coremail.digoal@126.com>
  References: <20140414014442.15385.74268@wrigleys.postgresql.org> <534E3222.609@vmware.com> <201404161620172127337@126.com> <534E607B.8050502@vmware.com> <20140416105916.GB16358@awork2.anarazel.de> <534E655A.8030200@vmware.com> <692e040.298db.1456a4197c1.Coremail.digoal@126.com> <534E6974.5020402@vmware.com> <2c0e50b0.f2.1456d0a648a.Coremail.digoal@126.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