Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mnhfC-0003aB-Mo for pgsql-bugs@arkaria.postgresql.org; Thu, 18 Nov 2021 13:41:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mnhfB-0002Wp-At for pgsql-bugs@arkaria.postgresql.org; Thu, 18 Nov 2021 13:41:17 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mnhRo-0007c8-WE for pgsql-bugs@lists.postgresql.org; Thu, 18 Nov 2021 13:27:29 +0000 Received: from mail.postgrespro.ru ([93.174.131.139]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mnhRl-0006C7-UO for pgsql-bugs@lists.postgresql.org; Thu, 18 Nov 2021 13:27:28 +0000 Received: from [192.168.28.32] (cyclops.postgrespro.ru [93.174.131.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mail.postgrespro.ru (Postfix) with ESMTPSA id 75DF621C068E; Thu, 18 Nov 2021 16:27:23 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mail; t=1637242043; bh=GuGp1cemAb9154EFVwqn5IAjtxacT9ipFotqU/FUK44=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=kFj5ibOP/cHqbsntH2iU8mnwnbD4IGHDPXENf23dN3xKf3S/5pC9QhtaL9Z3Ptm7G ZSWEAC8kETevKfqj6r/W4gngXbiPI2BzdeAEyD1yla+pUGPzbWffY6H+NWnidMJHK6 JH1MvPz9ds2ss5M92Q02G8uD2fYqsfPrugFpjkAE= Message-ID: Date: Thu, 18 Nov 2021 16:27:24 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0 Subject: Re: BUG #17288: PSQL bug with COPY command (Windows) Content-Language: ru To: =?UTF-8?Q?Juan_Jos=c3=a9_Santamar=c3=ada_Flecha?= , Michael Paquier Cc: PostgreSQL mailing lists References: <17288-6b58a91025a8a8a3@postgresql.org> From: Dmitry Koval In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Three corrections for patch v2-0001-Fixed-Windows-stat-emulation-working-with-streams.patch: 1) I see in debugger that field "st_mode" for stdout has value _S_IFCHR (0x2000, 8192); 2) "st_rdev" feild should have the same value as "st_dev"; 3) we can not use emulated stat information for stderr after call "freopen(OutputFileName, "a", stderr);". With best regards, Dmitry Koval.