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 1uop2W-00Arsb-Bb for pgsql-general@arkaria.postgresql.org; Wed, 20 Aug 2025 20:04:09 +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 1uop2V-00BCvV-Fu for pgsql-general@arkaria.postgresql.org; Wed, 20 Aug 2025 20:04:08 +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 1uop2V-00BCvN-4x for pgsql-general@lists.postgresql.org; Wed, 20 Aug 2025 20:04:07 +0000 Received: from mail-ej1-x631.google.com ([2a00:1450:4864:20::631]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uop2T-000y4u-1T for pgsql-general@lists.postgresql.org; Wed, 20 Aug 2025 20:04:07 +0000 Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-afcb79fb221so3510466b.2 for ; Wed, 20 Aug 2025 13:04:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1755720244; x=1756325044; darn=lists.postgresql.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=eSeZGFxpToJ66XLJCXNBsvaWfmpykNDL8vUAUJZo4qM=; b=LD6ahE2/qP4vZGUy/hpIh2RsEiCpYKH8UZeCYfXBfmeh7stbtCoSFkxMAogfQ1sTEH xBn4iPVcutDqCtOnmremXeZB0Yh8tWQGlKnvQ8wdToKiG8xMDBJdt9AMD+2DNrdi4tq9 aIjcqK4tdQGCKq/tV0eVbIb3qzasAA7aWo9Rc1ycxhBILDvwfJRxmj0Yt+4v9N9REA6q EsNGfVr4zNoh4TrT0kGaHe04Oy9mnhhuOEQ4ZWNTRToL5iNWBdtjYDRvc4MdM3uGetty bPALiC51xuKD0sc6qwQp01YQZrHNDd0TsYQLyUeu74JFL+UDH72pcDuYRWSCq/F7ja74 FHuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1755720244; x=1756325044; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eSeZGFxpToJ66XLJCXNBsvaWfmpykNDL8vUAUJZo4qM=; b=Eemiayr+9eiP1q8J+7iNPhXWwI/q+pszyWu2ojD1hfhm1mOKiZcTZGX7Sd6te6/Z9d zFgiwDsO2QJLbk4xdFogIy9ghaniF9DUzRCYkaOSY+4A3EZKugaMs4YwhBs0TlDJgusP 1INCnwgXvon2D1jifPF6U9MGFSnHjmqm/tvVbo6LarywZn91CE+KV8l6KvcK7z+1JUAO 2iHuEizIDvt/9ROZMVw89V+8AJf6fTzsErJrrNjdYEdWnxIOOdcyZBw02VUVHm7k17vd gc4lr7qCf8Rq3LbgdIc3Zxxiq1VGW1UA1+UudcNYDMT8kL1YujsKtYpMbJNzYgs+SvJ4 006A== X-Forwarded-Encrypted: i=1; AJvYcCWTS9Upe5OHW+XijdooD1TDfZcCRo8YOk9eEyRdGZuuOR7ctzfSxRyx7nei2pfkuQAZwgatf8XAHlWOXCb9@lists.postgresql.org X-Gm-Message-State: AOJu0Ywd/qGOd5NDBkf5IlRsrc9R/xio95juBw2cOl6jCYs7hRlk6u5q xgH8daJ3Ok+x8IwYRbj4rf82D263RkuL8yA7bj7zS+E+JDBdX5zUL+4t X-Gm-Gg: ASbGncsfApl5otkHyfEHDzVRKfMeXVv5IedsQI/5k/N3ahn/eeBQTCGjchCuRQDN0Bz qEpra6NU0djHLXeHb+y05lzCbcMTeq9uZAdo33MX1d+JF5xZva4unoOS7JJUJcm6Ksj1Vq4vtAw rzYrHh4erdNqhcbqnDihP/SzzPaXzja4P/v8vSuzP5HzIF4KRDx2FZ4FNJdSz6v/lpTgeeVtiYj P4lqHxawwBaUGTKfvVFHci/+t1wvboRkT32qFv6a5cLSRDDlEQzS/hTXvVIZQA51qj6vi2CSwgu 8h6GWNPkKV0Mo7TBYHd2pWTQ4wwE+o8MZzZ8e87i8mTvTYLx4xq+Rin6YBiay4NeiLtireVu+qR 61CwDLP9QaHGV4yMYR4GPx/4hG7ZbpbzFgcPmmh4= X-Google-Smtp-Source: AGHT+IGQJlu7PEjCMw73aMZU2mL+owdcGma1fijtCGAiHcdAhh5o4tim9k6EpWB8sl1lrdUqrbT+gA== X-Received: by 2002:a17:907:96a2:b0:adb:2f16:7ba1 with SMTP id a640c23a62f3a-afe07dba271mr2959266b.6.1755720243753; Wed, 20 Aug 2025 13:04:03 -0700 (PDT) Received: from smtpclient.apple ([188.212.112.125]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-afded4c9c12sm235006366b.82.2025.08.20.13.04.03 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Aug 2025 13:04:03 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.700.81\)) Subject: Re: Streaming replica hangs periodically for ~ 1 second - how to diagnose/debug From: Alban Hertroys In-Reply-To: <988958.1755691419@sss.pgh.pa.us> Date: Wed, 20 Aug 2025 22:03:52 +0200 Cc: Adrian Klaver , "depesz@depesz.com" , PostgreSQL General , Tom Lane Content-Transfer-Encoding: quoted-printable Message-Id: <33B10D6F-5120-4DE8-9725-CAF993B2A0F8@gmail.com> References: <8B89FABB-E020-4EF0-9019-08B1B9E22208@gmail.com> <988958.1755691419@sss.pgh.pa.us> To: Scot Kreienkamp X-Mailer: Apple Mail (2.3826.700.81) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On 20 Aug 2025, at 14:03, Tom Lane wrote: >=20 > Alban Hertroys writes: >> Or is it just my end that turns Scott's (and only Scott's) messages = into gibberish Chinese? >=20 > What it looks like from here is that the message body is in UTF16: > every other byte is zero. That gives my email client indigestion, > too. Actually, I think it=E2=80=99s misreporting the message content as = UTF-16, while it is in fact encoded as UTF-8. So the error appears to be = on the sender side. Apparently, Apple Mail.app is rather strict about following the reported = encoding, while Gmail for example does some attempt to guess. That would = explain the less terrible results with Gmail. I can base64 decode the message just fine on the command line, which = runs in a terminal emulator (Apple=E2=80=99s Terminal.app) that does = handle UTF-8, but not UTF-16 by default. Alban Hertroys -- Illustratief voor het verschil tussen steek- en snijwapens: Met mensen die een punthoofd hebben, kun je goed de draak steken. Met mensen die scherp zijn, lukt dat juist slecht.