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 1jtAOA-0002NK-Rl for pgsql-general@arkaria.postgresql.org; Wed, 08 Jul 2020 13:45:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jtAO8-0000Ej-5T for pgsql-general@arkaria.postgresql.org; Wed, 08 Jul 2020 13:45:28 +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 1jtAO7-0000Ea-2n for pgsql-general@lists.postgresql.org; Wed, 08 Jul 2020 13:45:27 +0000 Received: from [66.111.4.25] (helo=out1-smtp.messagingengine.com) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jtAO4-0007Nl-GO for pgsql-general@lists.postgresql.org; Wed, 08 Jul 2020 13:45:26 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id A67835C0148; Wed, 8 Jul 2020 09:45:13 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Wed, 08 Jul 2020 09:45:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=T 7BtB+7AhEyO0ndjTVKgxw6s1Rg2vuMRFRttsBHTkI4=; b=b4/ComrjroYiGdk2q DZTzGk8kfmVOHjqVBwsbJEkSn3wAbOHOQnNcvmQ1EKZ+x1Qt01RvPSam8DezWJzs 6/DJRmKJrb4UehxTbmmzv2Y9rjnn6GU+U8UVO3woyEWYNCC9Tx3qQOTbWOM4Bd+Y oxrthnDwco77QA0ec7QDJrMPa3+d7MiDR35PlfZYOj5YOEUxrXTf5fgkXjz0E84C GUzXFdWFf5XCeHtdG+wrxsxk8Sz84GNHyqiogGOCPKZBavWIaNubqBFheH5+thLh JQPW9lVBQiXRCSiWg/WpCuK6aebVrSKOyNbDqJ2iQfLCAes4D3bA3XXPHZw1NZRR VP6Gg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=T7BtB+7AhEyO0ndjTVKgxw6s1Rg2vuMRFRttsBHTk I4=; b=cWENcyQ+Nufmvl7MR4xBhApyRb87jbKnax71KJFYC+uxejM7KCy4aBVtJ 9chGJsZ33FL5To4+plrbI2O5QDjZ8VuNZPG7g9sW+dinhvcE5t8AY6EbDr7aAK11 RoEIxnf3lGmQTl0gsxwUSKzhO3WqNcEvWdjQX/2EjJBUnVJKuVZmbW+pIqjGYmp7 b24Zfv0nzqQeHVvVvKDfCxbSur8uLMzEzVeg6YqkRa2nH6S/72Veh2cVADUjKi9A EkmUVQba+OySVmVJtKXubl6XA5rxi6j4H8VovCrPYaLqlIN/gjxT/xpMILFG11mG zZmlJFOWNRHoYj9XQDwY4NjtOJwtQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrudejgdejtdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesthejre dttdefjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhl rghvvghrsegrkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpeetjedvteffje euvdelieeffeehuedthffgvdfhhffhkedvudevgedvjedufefgveenucfkphepjeehrddu jedvrdehrddvfedunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Received: from [192.168.1.3] (75-172-5-231.tukw.qwest.net [75.172.5.231]) by mail.messagingengine.com (Postfix) with ESMTPA id 10B9C30600B2; Wed, 8 Jul 2020 09:45:12 -0400 (EDT) Subject: Re: Is this a bug in pg_current_logfile() on Windows? To: Thomas Kellerer , pgsql-general@lists.postgresql.org References: <412ae8da-76bb-640f-039a-f3513499e53d@gmx.net> From: Adrian Klaver Message-ID: <4c926ea1-f0f9-b0fa-cbb7-fe67ce18dbeb@aklaver.com> Date: Wed, 8 Jul 2020 06:45:12 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <412ae8da-76bb-640f-039a-f3513499e53d@gmx.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 66.111.4.25 (deferred) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 7/8/20 6:05 AM, Thomas Kellerer wrote: > Hello, > > I noticed the following strage output when running Postgres 12.3 (not psql) on Windows > > postgres=# select pg_current_logfile(); > pg_current_logfile > ------------------------------------ > pg_log/postgresql-2020-07-08.log\r > (1 row) > > Note the "\r" at the end of the file name. > > This does not happen when running Postgres on Linux. > > Is this intended for some strange reason? > Or a bug or a technical limitation? I'm guessing the difference between Unix line ending: \n and Windows: \r\n > > Regards > Thomas > > -- Adrian Klaver adrian.klaver@aklaver.com