Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qghD2-00GrFd-1B for pgsql-hackers@arkaria.postgresql.org; Thu, 14 Sep 2023 07:56:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qghCz-006fve-QF for pgsql-hackers@arkaria.postgresql.org; Thu, 14 Sep 2023 07:56:17 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qghCz-006fvR-FM for pgsql-hackers@lists.postgresql.org; Thu, 14 Sep 2023 07:56:17 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qghCw-004zpL-HQ for pgsql-hackers@lists.postgresql.org; Thu, 14 Sep 2023 07:56:16 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id AA37B5C02AB; Thu, 14 Sep 2023 03:56:12 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Thu, 14 Sep 2023 03:56:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm2; t=1694678172; x=1694764572; bh=Ab n4JPD0X54JWD/O7bS1hUofQtodRpzC67ykrxGBtGU=; b=dS/BMw8cBy+Bwvc5zm 34KoLgBaIff+Bp5nQ1KOuBnOyfg1mmoRRVIKOknCiIareQ9yv0P2oZywkbkNgG1m PU8S8c+iGbMUbREHkkJt57GrE2Z5S6l19bORGrNxRA09q63Dcw/uNe1otCMJlH5Z nv3q205As9o4VtwiGNrF/B6f00D2+GfueZjkhsP8jT9Q1zu2XqrO3dy11cUmynU8 u+SDfL8MZv1SdWBCwKemce4lQZ+lj/RONC0p6DiCeRE+j4gxeg6I/2UdRs7v8piD HwaRoEJKkYSBpnK31QJ/XAayxxgWYseBD4PfN8HWe/p7hYAZjrFVnEXa8SMr8E7p 40ew== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1694678172; x=1694764572; bh=Abn4JPD0X54JW D/O7bS1hUofQtodRpzC67ykrxGBtGU=; b=kb0Ah6e2vvtE2LHpQ63Kf8I8DqVOZ Wr00lB13JtR3fYiwWgrpaXmHOaTPzxa5RnCJ+8IbUBwKmwCMtpr2TvB2iG4jY2KX 1xLDUf5zfwqojusYrBO5NzFihqqDMBHpFmR1nwh8pLkW8aDC6ZSG24lBpNh4qYhA 7Et+fvS94s7gEl1S4MVAoLTTlbJzSfJ3d4bCwxrLUrX8RAFPPRyN72b+qn9fRR7I UjPUy4gWorPs+7xTaB72yM6qxWLffaoqLQZ9mKuF7ytVjDtJqFCVnNyeursR26mR HhFxgx+7vanWjfGIN25zybzZ1sErUS+a77IkXLO9KH5D9spFMK/+D8w/Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudeiledguddvfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enfghrlhcuvffnffculdejtddmnecujfgurhepfffhvfevuffkfhggtggujgesghdtreer tddtvdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlse hprghquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpeetleeifedufffhhfdtteel geeggeffhfekueevteeigfduudevudetgfegiedvjeenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdig hiii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 14 Sep 2023 03:56:10 -0400 (EDT) Date: Thu, 14 Sep 2023 16:56:03 +0900 From: Michael Paquier To: Daniel Gustafsson Cc: Peter Eisentraut , PostgreSQL Hackers Subject: Re: Quoting filename in using facing log messages Message-ID: References: <080EEABE-6645-4A46-AB20-6285ADAC44FE@yesql.se> <7bc486db-9888-7d23-2cae-6068b506785f@eisentraut.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="PqohS23aTQgx1Yr7" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --PqohS23aTQgx1Yr7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Sep 13, 2023 at 02:02:47PM +0200, Daniel Gustafsson wrote: > It might be worth concatenating the errmsg() while there since we typical= ly > don't linebreak errmsg strings anymore for greppability: >=20 > - errmsg("could not write to log file %s " > - "at offset %u, length %zu: %m", > + errmsg("could not write to log file \"%s\" at offset %u, length %zu: %= m", >=20 > I don't have strong feelings wrt that, just have a vague memory of "conca= tenate > when touching" as an informal guideline. Because these are slightly easier to grep when looking for a given pattern in the tree. (I'm OK with your patch as well, FWIW.) -- Michael --PqohS23aTQgx1Yr7 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmUCvJMACgkQnvQgOdby QH3X2w/+LJMpImOBoCLOL7kA4TY4Kf915wmIeylntApJdyQ49YAQCEBo13ar2Vae mjnT9xP0XKsfb7D4+Cp2j7ROrPHCRCcLCgu8mYcmkNZLEyWYbS2mscqOZPDFeuqZ jTICQDXdFOS2pFRmYjq2PkSBGkQ0JniI3AryhQoECgCR+LfGQOAfGJsu/XjOUx17 g7u40t3+sE8AhEcJkqwjjjY0HtK6PGqUhpzf1UNKbi70ubJBXA4eZ127hH0s60Jb w1LgdDpThfrzpcm4ADpWNCO9iA5gQMq56zQBSovEgUIeU1h9esFaIU0u/IY05Thu KpkrcLprf1t8Zax5W70wCzokg9sAZ8QADHW48vi3GEozp3jSQw1uzRsVIEoZJ2B0 07i+S/4wBKRwxkNXEuEw3ujAGNS7Vf//Ae0p/3Ep84p5QRdzMMgJ6vWF4gcQJaUU /7TGpi4lhVjUYpWMKAXaY7YksVxdir3qg94ovD382XdxWjxOoRuQWKYlpmvPOK0v WQlmViaCYW8gdr5AV7DHaryrY/l0lsz7S1QaNtupo5bE63fsW6OMm/hxdo/hbT/o Eisako5iBB+cIwhv95OaQyFmdfm+xa2ryycMOZ0eW8/YZeF2kGpRzdTje3R/WHxf 5OcW3UqQ/rGXucEAhQtAXwWyacA8R3lzAjDMKql4lt10qeaGoN4= =wyAY -----END PGP SIGNATURE----- --PqohS23aTQgx1Yr7--