Re: PL/pgSQL function to run DDL on a remote server/cluster?

Поиск
Список
Период
Сортировка
От Laurenz Albe
Тема Re: PL/pgSQL function to run DDL on a remote server/cluster?
Дата
Msg-id 64362c8d5a5326d9911b9826dbc272dde8079b86.camel@cybertec.at
обсуждение исходный текст
Ответ на Re: PL/pgSQL function to run DDL on a remote server/cluster?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: PL/pgSQL function to run DDL on a remote server/cluster?
Список pgsql-admin
On Thu, 2023-03-23 at 15:15 -0400, Tom Lane wrote:
> Laurenz Albe <laurenz.albe@cybertec.at> writes:
> > On Thu, 2023-03-23 at 12:03 -0600, Sbob wrote:
> > > Is it possible to execute DDL on a remote server/cluster from a PL/pgSQL
> > > function?
> > > If so can someone point me to docs or an example?
>
> > You cannot do that with the built-in tools.
> > You'd have to write an extension that can do that.
>
> You do need an extension, but contrib/dblink should do fine.

Ah, of course.  Silly of me.

Yours,
Laurenz Albe



В списке pgsql-admin по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: PL/pgSQL function to run DDL on a remote server/cluster?
Следующее
От: Sbob
Дата:
Сообщение: Re: PL/pgSQL function to run DDL on a remote server/cluster?