Re: PL/pgSQL function to run DDL on a remote server/cluster? - Mailing list pgsql-admin

From Laurenz Albe
Subject Re: PL/pgSQL function to run DDL on a remote server/cluster?
Date
Msg-id ad07bcffd3ab3adc3a98dffa068e0e213d87e006.camel@cybertec.at
Whole thread Raw
In response to PL/pgSQL function to run DDL on a remote server/cluster?  (Sbob <sbob@quadratum-braccas.com>)
Responses Re: PL/pgSQL function to run DDL on a remote server/cluster?  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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



pgsql-admin by date:

Previous
From: Sbob
Date:
Subject: PL/pgSQL function to run DDL on a remote server/cluster?
Next
From: Tom Lane
Date:
Subject: Re: PL/pgSQL function to run DDL on a remote server/cluster?