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 1ukUh6-0037kL-JL for pgsql-hackers@arkaria.postgresql.org; Fri, 08 Aug 2025 21:32:08 +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 1ukUh5-00GUmL-6Z for pgsql-hackers@arkaria.postgresql.org; Fri, 08 Aug 2025 21:32:07 +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.94.2) (envelope-from ) id 1ukUh4-00GUmD-Sf for pgsql-hackers@lists.postgresql.org; Fri, 08 Aug 2025 21:32:06 +0000 Received: from mail-qv1-xf2b.google.com ([2607:f8b0:4864:20::f2b]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1ukUh0-001SR7-1a for pgsql-hackers@lists.postgresql.org; Fri, 08 Aug 2025 21:32:05 +0000 Received: by mail-qv1-xf2b.google.com with SMTP id 6a1803df08f44-707453b031fso32036406d6.1 for ; Fri, 08 Aug 2025 14:32:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb.com; s=google; t=1754688722; x=1755293522; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=gTixUI3763V9JyCfJjyAOA0tTI8zuSaCyIrOiHAQWD8=; b=dEEVET1fcqG2m+gtK5Xpeg1soBwC+df5PP5o1cx3JeJYo2fYtXzE73VmmkzZckK621 OZHEBtTimB8TE+4XLkQzazN98UhlvKkiNvv34s3Q0yTQDNijO/76YOMb0CKhQPHC8aTb rPueYKEwuGo0sFW/iIerw9UIQG0s+UhIfNrvQrUZSnQOdjYckIEbatONA2rZLZKKTthc VuJvEQTzhkiLzlB7cU3yFIc3yBaaNPjL2uohoco7ADVkLWmPyDW0Ay7aL71xPhJfk4gx P/p7T6s8PS8Ov9Pi3Wkv0HojeC6OgsWzqa+XtxwSW1M1lcCwfMXPJQIYZ7fgarGRNqIM goRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1754688722; x=1755293522; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gTixUI3763V9JyCfJjyAOA0tTI8zuSaCyIrOiHAQWD8=; b=M3c1dnGBn4/J5cm5WrmOzrmcPxv8Po5um7pU+KQtX0flEYr/z0MkkfCZFVCUwPpN/l AC6XLRqesB/BgdIV65qopiffryozPoB+PCw1RoFr9wH1UY+PjO7qTQQzVs5xwhZ1pM5a r44Bzq7kC/Hxu1qhuLF9Yp3CiRAvz9Iovy1J/8Yhh7AS03KQQ/M7YZfQFXoEcNV/+e5l WA3McXFRNupxGVUhBMBpStjYrUXao3igGLpgv22uipCxeMTy4JV68EvSpm8EA6sjUZ4d OeK2o8EGjAt2KpiOUnJmRr43BoDpCWHN8JDuhFehYNgjgbioGc8rFCRxIuh1QRGrGDfe K6QQ== X-Forwarded-Encrypted: i=1; AJvYcCV9HfCALLd3XtfE+VIrqyxGHDkxjshy3ji0HSq116YxQ+MDOVymzuuyMrxUk5VAh6+6dhUSo7KRrSTE8Pl3@lists.postgresql.org X-Gm-Message-State: AOJu0Yz1bXgzeGKMI9RmkGFLFTh8JPs4QXt/TcTqdylSYdoyh089Z6+t eTtdHwQMJcDCLaWC37fna4AHRBPeQfRReevrfdE9pIVvAGeZnco7F4R9mglO1r3a3wcNPANM+O4 rOslSvSWMESGI3PwCDtSjqHcwEk9VWGdN86mBx/3S X-Gm-Gg: ASbGnctXle5VHZG9X5slNSANMY5MTrVg28pjse+vMiej+5ppzPwgkTlAP7K6Jbu1d/S hkdGT0UNfzaqJNGxCvhjGbU70g5gUy5gk818irL2DgffX3YTq95GuPo9q/NfgJqiPoaHUsy3evZ HFCwzsDx5cY4+5zY6E1cEh+RDAjNn1mfe6xQXKVXK63GC8HAdtPQ1/w1Fby20JTLfqseWpCKDg5 afnleg= X-Google-Smtp-Source: AGHT+IHacnB+XLbK/EF4RVJoWhI6nq5UutzeIomMhuScyM645hcZN/it3laLaePn+WXtZ4xjWRM1xPwvPt8lLAwXnvw= X-Received: by 2002:a05:6214:21ef:b0:707:5fbf:26d2 with SMTP id 6a1803df08f44-7099a28196amr87802956d6.2.1754688721571; Fri, 08 Aug 2025 14:32:01 -0700 (PDT) MIME-Version: 1.0 References: <87ldnvgkdq.fsf@wibble.ilmari.org> <87fre1h90x.fsf@wibble.ilmari.org> <87cy95h5uh.fsf@wibble.ilmari.org> In-Reply-To: <87cy95h5uh.fsf@wibble.ilmari.org> From: Jacob Champion Date: Fri, 8 Aug 2025 14:31:49 -0700 X-Gm-Features: Ac12FXzIqmi0JM8lMobojNl5_uziv9HjdEbptDa_9JkcCTB53So21orkKLDwX6Q Message-ID: Subject: Re: [PATCH] OAuth: fix performance bug with stuck multiplexer events To: =?UTF-8?Q?Dagfinn_Ilmari_Manns=C3=A5ker?= Cc: Thomas Munro , PostgreSQL Hackers , Daniel Gustafsson , Peter Eisentraut Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, Aug 8, 2025 at 2:16=E2=80=AFPM Dagfinn Ilmari Manns=C3=A5ker wrote: > That's because encode_json has a prototype[1], which changes how the > argument list is parsed: no longer just as a flat list of values like a > normal function. Specifically, it has a prototype of '$', which means > it only takes one argument, which is evaluated in scalar context. So > the first example is a syntax error, but in the second example the > parenthesised expression is the single argument. Becuse it's in scalar > context, the comma is actually the scalar comma operator, not the list > element separator, so the return value is the right-hand side of the > comma (just like in C), not the length of the would-be list. ron-swanson-throws-away-computer.gif Well, thank you for the explanation. I'll make that change. --Jacob