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 1r3KGF-0038fC-No for pgsql-docs@arkaria.postgresql.org; Wed, 15 Nov 2023 18:05:11 +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 1r3KGE-001Jkn-9n for pgsql-docs@arkaria.postgresql.org; Wed, 15 Nov 2023 18:05:10 +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 1r3KGE-001Jkc-10 for pgsql-docs@lists.postgresql.org; Wed, 15 Nov 2023 18:05:10 +0000 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1r3KGB-006bGI-95 for pgsql-docs@lists.postgresql.org; Wed, 15 Nov 2023 18:05:09 +0000 Received: by mail-wr1-x431.google.com with SMTP id ffacd0b85a97d-32db188e254so4429672f8f.0 for ; Wed, 15 Nov 2023 10:05:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20230601.gappssmtp.com; s=20230601; t=1700071506; x=1700676306; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=k3u+74GGO5nKr7yYRFqtYHJl8uNMXzZi4gqx3xc/ci8=; b=TRhXxAl2IbeGTcF8XZTQJUziLCCGFqAuwvVsT3wWdutrcg48XJgPcHmiS45yO37zzN V7ju+q1rYw7tlEW7X8CigT+XaL7k5sL7IQDebIFdU1X+Za7v6XAWV0exdll6WUuUj8rH 50o3BdW22Fq/trbBp85DySP7lllvWvhG1qM5XFZxurIvpIfPoiFwNffYODEOYos4OFLz UIIEi6a3SgbAJcjpEC4NWjXUXwQGhnnuEyLycSAzmGqZR1oix4lczccaDCQMi6p/9MHk r50w9buU45Da/hIsUiIhrMyLmz42DvqH52n4QZRTfCEiIURj+jjdFT2V9qnMBPxJCl6r bU7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700071506; x=1700676306; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=k3u+74GGO5nKr7yYRFqtYHJl8uNMXzZi4gqx3xc/ci8=; b=h2y8L39CW1jHY73/Nbl6r/CPYiR4pyQo2P9XNxmpXs8aUIaoR6s/O/3TxNP+/HOEd9 QV6PBkTOnDfKwxar2fZ4cs+s8PelTVl7I1SjLccIP3/3XsRof3XqJtXqFAiy2pODv+yZ oZO4CazF8XQw0Meh3fce4ETsolOrRNn5RzA5BeAzC/+3gf2+HffdXw3E/VTKEn/ZAije FhEdshgvR9EDd/Zb0+EeRA/ZUAN2Jkiq9mMkJtYKe2IRimY6jG6hjh9JmOTa9s2VhDtA LZsdmcCxVCxowyC10z4p3ZodQ6i49Qq3MxoWhQAXk5vmwF/u3xosNtcnnHiKKGvMdTEh rb1w== X-Gm-Message-State: AOJu0Yxe1bA9HfeVDVpsa10IHAoSTAUVmCqDw7DzuFPfH7nIJN6GfVGS 6AYLAiN0UaCgsC7zptzP1uSGYLRGr/+q1F/6snY= X-Google-Smtp-Source: AGHT+IEpE1ehZJFi/r+gWSCTh2pp0hh9InVPKjjiGWsynaRk2Q3xCFFe79ZY96n2e1A6BcB8lLPZkg== X-Received: by 2002:a5d:698c:0:b0:32d:d756:2cc7 with SMTP id g12-20020a5d698c000000b0032dd7562cc7mr8864609wru.58.1700071505928; Wed, 15 Nov 2023 10:05:05 -0800 (PST) Received: from localhost.localdomain (p50992f7c.dip0.t-ipconnect.de. [80.153.47.124]) by smtp.gmail.com with ESMTPSA id j12-20020adfea4c000000b0031f82743e25sm11128843wrn.67.2023.11.15.10.05.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 10:05:05 -0800 (PST) Message-ID: <2e0ffcb3a67e0ece4dd4de34d33541b12f4e78b7.camel@cybertec.at> Subject: Re: Additional Notes From: Laurenz Albe To: danielr@neophi.com, pgsql-docs@lists.postgresql.org Date: Wed, 15 Nov 2023 19:05:05 +0100 In-Reply-To: <170006991214.398197.16221983243746809180@wrigleys.postgresql.org> References: <170006991214.398197.16221983243746809180@wrigleys.postgresql.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, 2023-11-15 at 17:38 +0000, PG Doc comments form wrote: > The following documentation comment has been logged on the website: >=20 > Page: https://www.postgresql.org/docs/16/sql-notify.html > Description: >=20 > It would be good to add to the notes section that use of NOTIFY especiall= y > within a TRIGGER requires an AccessExclusiveLock which may cause performa= nce > issues. Old thread for reference: > https://www.postgresql.org/message-id/3598.1363354686%40sss.pgh.pa.us I don't see what this has to do with triggers. Even deferred triggers run *before* this notify lock is taken. The only possibility I see for such a lock to be held for a long time is if COMMIT spends a long time waiting for a reply from a synchronous standby server. Is that your problem? I don't think that would require special documentation, because if your synchronous standby does not respond in time, you normally have worse problems than NOTIFY performance. Yours, Laurenz Albe