Re: ALTER SUBSCRIPTION ... REFRESH cannot be executed from a function

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Roman Šindelář <roman(dot)sindelar(at)gmail(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: ALTER SUBSCRIPTION ... REFRESH cannot be executed from a function
Date: 2023-12-06 15:15:43
Message-ID: 1101517.1701875743@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

=?UTF-8?B?Um9tYW4gxaBpbmRlbMOhxZk=?= <roman(dot)sindelar(at)gmail(dot)com> 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Andrew Dunstan 2023-12-06 15:32:41 Re: Emitting JSON to file using COPY TO
Previous Message Daniel Gustafsson 2023-12-06 15:09:04 Re: Trainning and Certification