Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1byL0T-0002cn-LC for pgsql-committers@arkaria.postgresql.org; Sun, 23 Oct 2016 15:48:17 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1byL0S-0000ya-DC for pgsql-committers@arkaria.postgresql.org; Sun, 23 Oct 2016 15:48:16 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1byL0R-0000yT-TO for pgsql-committers@postgresql.org; Sun, 23 Oct 2016 15:48:16 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1byL0O-0001f5-06 for pgsql-committers@postgresql.org; Sun, 23 Oct 2016 15:48:14 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u9NFm96O026274; Sun, 23 Oct 2016 11:48:09 -0400 From: Tom Lane To: Magnus Hagander cc: pgsql-committers Subject: Re: pgsql: Allow pg_basebackup to stream transaction log in tar mode In-reply-to: References: Comments: In-reply-to Magnus Hagander message dated "Sun, 23 Oct 2016 16:04:37 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <26272.1477237689.1@sss.pgh.pa.us> Date: Sun, 23 Oct 2016 11:48:09 -0400 Message-ID: <26273.1477237689@sss.pgh.pa.us> X-Pg-Spam-Score: -2.2 (--) 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 Magnus Hagander writes: > The remaining windows buildfarm build issue looks like this: > src/bin/pg_basebackup/receivelog.c(135): error C2039: '_commit' : is > not a member of 'WalWriteMethod' > [C:\buildfarm\buildenv\HEAD\pgsql.build\pg_basebackup.vcxproj] > AFAICT this comes from using walmethod->fsync(), and we have a #define > changing fsync() to _commit (port/win32.h, line 70). Yeah. > The easiest might just be to rename walmethod->fsync() to > walmethod->do_fsync(), so we don't have to mess with any other code. How about calling the method just "sync()"? Seems a bit less artificial. regards, tom lane -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers