Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YvpSE-0004BJ-6q for pgsql-committers@arkaria.postgresql.org; Fri, 22 May 2015 16:05:46 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YvpSD-000759-F7 for pgsql-committers@arkaria.postgresql.org; Fri, 22 May 2015 16:05:45 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YvpSC-00074v-PM for pgsql-committers@postgresql.org; Fri, 22 May 2015 16:05:44 +0000 Received: from mout.gmx.net ([212.227.15.15]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.84) (envelope-from ) id 1YvpS9-0002Lr-63 for pgsql-committers@postgresql.org; Fri, 22 May 2015 16:05:44 +0000 Received: from auth2-smtp.messagingengine.com ([66.111.4.228]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0LpsIh-1ZOp4n1fCJ-00flkq for ; Fri, 22 May 2015 18:05:38 +0200 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailauth.nyi.internal (Postfix) with ESMTP id D53FB208EC for ; Fri, 22 May 2015 12:05:36 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Fri, 22 May 2015 12:05:36 -0400 X-Sasl-enc: dVZYkLElrCiZM/MaFaWpHgZefqLkHGI6N4BUTbq+HYt1 1432310736 Received: from [192.168.1.147] (unknown [204.145.120.11]) by mail.messagingengine.com (Postfix) with ESMTPA id 63AFFC00013; Fri, 22 May 2015 12:05:36 -0400 (EDT) Message-ID: <555F53D0.7050506@gmx.net> Date: Fri, 22 May 2015 12:05:36 -0400 From: Peter Eisentraut User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Heikki Linnakangas , pgsql-committers@postgresql.org Subject: Re: pgsql: At promotion, archive last segment from old timeline with .parti References: In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:xSo9k7UisxT06P/Wp4wEKELx9Q7L+qALlonIzGEH9s3lJ9LINX5 Wl6012+2/as8nRu5oxsTjTjbxk1Ym1UeFy/YpSvyIS3oxXOQXP8M+dn2ZIgzZvuNtWrXM5P DBMp4qSTRbbFmJwuw7chHkLjjsa2yapzTa1euQxl7FoyC85seVQl2ghK3bDivEVMjAahCkf EalzbOy1L5z2t9nvBMk+w== X-UI-Out-Filterresults: notjunk:1; X-Pg-Spam-Score: -3.0 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org On 5/8/15 3:07 PM, Heikki Linnakangas wrote: > At promotion, archive last segment from old timeline with .partial suffix. There appears to be a mixup here: + char origpath[MAXPGPATH]; + char partialfname[MAXFNAMELEN]; + char partialpath[MAXPGPATH]; + + XLogFilePath(origpath, EndOfLogTLI, endLogSegNo); + snprintf(partialfname, MAXPGPATH, "%s.partial", origfname); + snprintf(partialpath, MAXPGPATH, "%s.partial", origpath); Some compilers are complaining that the snprintf(partialfname, ...) could overflow. -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers