Thread: Is it possible to combine the power of Postgres and Python in do statement?

Is it possible to combine the power of Postgres and Python in do statement?

From
Shaozhong SHI
Date:
How to combine the power of Postgres and Python is of interest.

Can we do that within a Do statement?

Any examples?

Regards,

David
Shaozhong SHI <shishaozhong@gmail.com> writes:
> How to combine the power of Postgres and Python is of interest.
> Can we do that within a Do statement?

DO $$ ... $$ LANGUAGE plpythonu;

            regards, tom lane



Re: Is it possible to combine the power of Postgres and Python in do statement?

From
Shaozhong SHI
Date:
Hi, Tom,

Any demo?

Regards,

David

On Tue, 5 Oct 2021 at 15:32, Tom Lane <tgl@sss.pgh.pa.us> wrote:
Shaozhong SHI <shishaozhong@gmail.com> writes:
> How to combine the power of Postgres and Python is of interest.
> Can we do that within a Do statement?

DO $$ ... $$ LANGUAGE plpythonu;

                        regards, tom lane