Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g5Wtb-00043i-PQ for pgsql-hackers@arkaria.postgresql.org; Thu, 27 Sep 2018 14:03:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g5WtZ-0000ji-Tu for pgsql-hackers@arkaria.postgresql.org; Thu, 27 Sep 2018 14:03:57 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g5WtZ-0000jb-N2 for pgsql-hackers@lists.postgresql.org; Thu, 27 Sep 2018 14:03:57 +0000 Received: from mail-qk1-f178.google.com ([209.85.222.178]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1g5WtX-0007Oz-Lu for pgsql-hackers@postgresql.org; Thu, 27 Sep 2018 14:03:57 +0000 Received: by mail-qk1-f178.google.com with SMTP id q12-v6so1598826qkl.13 for ; Thu, 27 Sep 2018 07:03:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:reply-to:subject:to:cc:references:from :organization:message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=Y30ucmP1ETBRNR0ZoR3IC7KEIAy154TelSveRGabhtE=; b=s5vWW0COPFVcKV0tQGsu7giyaezb1e5vti9ROl8L5+Vee/nIRVtETmLm66zNiR1uZP Mks0oryl3OO3SMN8dqTM3j/WKJBATXmNpiCsiC/R+wo2vo3/Vjts0psFNXUw/jXFSo3w y9YvZ+c4KiG91sEHGrguBDcofqUuif82GmE3dXBVDvstw18CEPHKclhpJaOlewv2Nl9T 92I7yoCPgrGF+cA86ffgIgULH/Sls/fmkhPxKcvkYFNdehIUYjJr28IgGknfBX+mYNoC xWhAQ+f2MzJuiH4UJMDWeK9g7FRB/ouBvHJqw79vXTjXQO6bI7hoGkfLb6SeuusKgONq qROA== X-Gm-Message-State: ABuFfoh0ivJqiagRM0NWDRjbGHY6VAPBOVYRuftE/goWSfZubIWpiEn3 6BM8OaL1UtFBDs4ouGNNZuzuMg== X-Google-Smtp-Source: ACcGV63YQs+LrANbl5OD78E5smdTO2bVxJjj1TraZVclx52LRhfXBRI2axE41X/xhQ5eNU++ABSWWA== X-Received: by 2002:a37:a0c2:: with SMTP id j185-v6mr8150851qke.74.1538057034327; Thu, 27 Sep 2018 07:03:54 -0700 (PDT) Received: from localhost.localdomain (c-24-61-8-151.hsd1.ma.comcast.net. [24.61.8.151]) by smtp.gmail.com with ESMTPSA id y143-v6sm1151621qky.95.2018.09.27.07.03.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Sep 2018 07:03:52 -0700 (PDT) Reply-To: jesper.pedersen@redhat.com Subject: Re: pread() and pwrite() To: Thomas Munro , Magnus Hagander Cc: Oskari Saarenmaa , Pg Hackers , Tobias Oberstein References: <20180720081459.GC22214@saarenmaa.fi> <7f379440-dfec-70ca-8a0d-942f1381936b@redhat.com> From: Jesper Pedersen Organization: Red Hat Message-ID: <983a8d48-64fa-e2f7-55c4-41e20bc51ef5@redhat.com> Date: Thu, 27 Sep 2018 10:03:51 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi Thomas, On 9/18/18 9:48 PM, Thomas Munro wrote: > It certainly wouldn't hurt... but more pressing to get this committed > would be Windows support IMHO. I think the thing to do is to open > files with the FILE_FLAG_OVERLAPPED flag, and then use ReadFile() and > WriteFile() with an LPOVERLAPPED struct that holds an offset, but I'm > not sure if I can write that myself. I tried doing some semi-serious > Windows development for the fsyncgate patch using only AppVeyor CI a > couple of weeks ago and it was like visiting the dentist. > Sorry, no idea about this. Maybe Magnus can provide some feedback ? > On Thu, Sep 6, 2018 at 6:42 AM Jesper Pedersen >> Once resolved the patch passes make check-world, and a strace analysis >> shows the associated read()/write() have been turned into >> pread64()/pwrite64(). All lseek()'s are SEEK_END's. > > Yeah :-) Thanks for v5 too. Best regards, Jesper