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 1rAtcq-008cuL-To for pgsql-general@arkaria.postgresql.org; Wed, 06 Dec 2023 15:15:48 +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 1rAtcp-00AREd-7Z for pgsql-general@arkaria.postgresql.org; Wed, 06 Dec 2023 15:15:47 +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 1rAtco-00AREV-St for pgsql-general@lists.postgresql.org; Wed, 06 Dec 2023 15:15:46 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rAtcm-0096An-Cb for pgsql-general@lists.postgresql.org; Wed, 06 Dec 2023 15:15:45 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 3B6FFh8N1101518; Wed, 6 Dec 2023 10:15:43 -0500 From: Tom Lane To: =?UTF-8?B?Um9tYW4gxaBpbmRlbMOhxZk=?= cc: pgsql-general@lists.postgresql.org Subject: Re: ALTER SUBSCRIPTION ... REFRESH cannot be executed from a function In-reply-to: References: Comments: In-reply-to =?UTF-8?B?Um9tYW4gxaBpbmRlbMOhxZk=?= message dated "Wed, 06 Dec 2023 13:04:10 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1101516.1701875743.1@sss.pgh.pa.us> Date: Wed, 06 Dec 2023 10:15:43 -0500 Message-ID: <1101517.1701875743@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk =?UTF-8?B?Um9tYW4gxaBpbmRlbMOhxZk=?= writes: > - ALTER SUBSCRIPTION ... REFRESH cannot be executed from a function in all > PGSQL versions 14+, is it desired behavior? It's intentional to get some other benefits, if that's what you mean. See https://git.postgresql.org/gitweb/?p=postgresql.git&a=commitdiff&h=ce0fdbfe972 regards, tom lane