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.96) (envelope-from ) id 1wTvWj-000pvn-2d for pgsql-hackers@arkaria.postgresql.org; Mon, 01 Jun 2026 05:49:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wTvWh-0093Px-34 for pgsql-hackers@arkaria.postgresql.org; Mon, 01 Jun 2026 05:49:28 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wTvWh-0093Po-28 for pgsql-hackers@lists.postgresql.org; Mon, 01 Jun 2026 05:49:28 +0000 Received: from mail-pj1-x1035.google.com ([2607:f8b0:4864:20::1035]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wTvWf-00000000Wpb-0NIo for pgsql-hackers@lists.postgresql.org; Mon, 01 Jun 2026 05:49:26 +0000 Received: by mail-pj1-x1035.google.com with SMTP id 98e67ed59e1d1-36b9d265355so2027970a91.2 for ; Sun, 31 May 2026 22:49:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1780292965; x=1780897765; darn=lists.postgresql.org; h=content-transfer-encoding:mime-version:user-agent:references :in-reply-to:from:subject:cc:to:message-id:date:from:to:cc:subject :date:message-id:reply-to; bh=F2lZOkIH1PW23kGjW60FIO/axDk2CtKrYV4VK954XzE=; b=AJx8ghc+riXbZow5X7PE3CxQYqhmc292MCkngVzJpaLYpEyMSElcR8wm2xkorXtmM1 W6pHQ8Z4CxgNvswbQ09DwW38zscSRpswZXwI0rJtd2SyqufR/hRchHaeOALOUcAuNEkI L1/pm8Yyi5hBkAVcOEXaQXVwBUZcMmPmTRq8iSREWgqGe6JPqF3gu4TGAOh7s6nYF5a5 Ebpw1zWTaS4VCItX+cENkd7Q/DWynZUNaBgZTbO5uw1sBjQGTJbkcIoiZiwHRwnXqfRP H2ZQNa5L6ddsp01fsj389SrUINihVL9We8NLPjGgokMai/kZQuZh25I7YLw8JCgbrR2a 9pow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780292965; x=1780897765; h=content-transfer-encoding:mime-version:user-agent:references :in-reply-to:from:subject:cc:to:message-id:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=F2lZOkIH1PW23kGjW60FIO/axDk2CtKrYV4VK954XzE=; b=k+QZT5iBL2rgoHvPzefi/Gddn4oYCEv8cW5lX62tIkpuyF5S5zqxw7RbtmKsYUCJ0X /h0w7+37yjA53rk7W9WMLSdWW6ThNPIm3MGOpdst2LkFaKbMTeljmEelahn635XPmm/v zC6X0XlvcMbYmm094vv3dtyXVUVN+DyZrrON26Xs2go5e4xyHTpolYyJaXswG98DXHr2 1A3fTP4GFrdl0J4jOueslotszMelrtvrMRPbmoOfj+WMGEMLvdFbvmjHG8KaTfVDsyj+ PGZUbZJuS+xGpqfkefoS5TgxB7+BjX+nb4vGwUUqGmiJ7vzoaR10SQoOoVTF9VN7+ejh 45pw== X-Gm-Message-State: AOJu0YyhRKIfEQSdS4GD7DxvsWtJIKeXbgxuVEqdFPW7kj9GQABNUFxZ JdOcmve6fe0zTnSMfoFimPnovHEv8saqxTIxbqkJrJ0QziJ736JOgx7x X-Gm-Gg: Acq92OGauZ26/KjGahvWt68MU7h7+cvwlTQgCg4XAnp2WfRZ1oMoe6ZYVqBAgOKUYck UFAzWwnTChx6ze8WL9F9z+rU9uPXxTiVUkqLPVrcdB+mARRJ8itzJgayuuxKexx7cOu8+IOeOo8 SNWjgRI59IlKOgdTtDQXzYK/Efz+hu9N/PCKfdTkWwKq7UiwpVB9sKVf0vn7zrdZ1qySw2ZvnCN 53bKeBYBWlLUZ9lnTfijcVvIsjRaZlJfw723s1hSnNr4qs504dGDmZ6XpTroZCZqkXvs+xBJBM1 Gv7xDoxilHGrHTBZOigXDK1K4FlryBpzJN4PY73KFIg+/qKNImWfo/AxPV3aKd7ftPgPAWSZ7Yq CxuP+ppBQPiV7SgCyn2u4ah85I0NVkJX9qye6IZnzy7H6qswuJFDx0IcFnBO+9YTN65xHRztAhM Wqd7m2n1ALRZoJGKZAFLOCZ7yWQOmS8oJ8o/+TFHWlatYIEPUyrm08593FchLC16HlY9wR+cTAL 37GTHIbRw== X-Received: by 2002:a17:90b:5704:b0:36b:93f7:a903 with SMTP id 98e67ed59e1d1-36c501c74f8mr9574711a91.18.1780292964645; Sun, 31 May 2026 22:49:24 -0700 (PDT) Received: from localhost (KD036014041111.ppp-bb.dion.ne.jp. [36.14.41.111]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-36bc0bf0040sm10295065a91.9.2026.05.31.22.49.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 31 May 2026 22:49:24 -0700 (PDT) Date: Mon, 01 Jun 2026 14:49:22 +0900 (JST) Message-Id: <20260601.144922.658666928129832364.horikyota.ntt@gmail.com> To: shinsj4653@gmail.com Cc: pgsql-hackers@lists.postgresql.org, wolakk@gmail.com, x4mmm@yandex-team.ru, andreas@proxel.se, nik@postgres.ai Subject: Re: Add wait events for server logging destination writes From: Kyotaro Horiguchi In-Reply-To: References: User-Agent: Mew version 6.8 on Emacs 29.4 Mime-Version: 1.0 Content-Type: Text/Plain; charset=euc-kr Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello. At Sun, 31 May 2026 17:50:08 +0900, ½Å¼ºÁØ wrote in > Attached is a short series that adds two WaitEventIO events and reports > them around those writes: > > IO / SysloggerWrite - write(2) to the syslogger pipe > IO / StderrWrite - write(2) to stderr, and WriteConsoleW() > > 0001 adds the events and covers the write(2) paths. 0002 does the > Windows WriteConsoleW() path, split out since it's platform-specific. Should we also consider instrumenting ReportEventW()/ReportEventA()? They seem to be another Windows-specific logging output path. Also, if the intention is to cover all places where logging output can block, I wonder whether the syslog() calls should be covered as well. If they are intentionally excluded, perhaps a short comment explaining the rationale would be useful. Regards. -- Kyotaro Horiguchi NTT Open Source Software Center