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

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: Sbob <sbob(at)quadratum-braccas(dot)com>, Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: PL/pgSQL function to run DDL on a remote server/cluster?
Date: 2023-03-23 18:52:02
Message-ID: ad07bcffd3ab3adc3a98dffa068e0e213d87e006.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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.

Yours,
Laurenz Albe

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2023-03-23 19:15:19 Re: PL/pgSQL function to run DDL on a remote server/cluster?
Previous Message Sbob 2023-03-23 18:03:17 PL/pgSQL function to run DDL on a remote server/cluster?