agora inbox for pgsql-sql@postgresql.org  
help / color / mirror / Atom feed
Is it possible to combine the power of Postgres and Python in do statement?
3+ messages / 2 participants
[nested] [flat]

* Is it possible to combine the power of Postgres and Python in do statement?
@ 2021-10-05 13:05 Shaozhong SHI <shishaozhong@gmail.com>
  2021-10-05 14:32 ` Re: Is it possible to combine the power of Postgres and Python in do statement? Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 3+ messages in thread

From: Shaozhong SHI @ 2021-10-05 13:05 UTC (permalink / raw)
  To: pgsql-sql <pgsql-sql@lists.postgresql.org>

How to combine the power of Postgres and Python is of interest.

Can we do that within a Do statement?

Any examples?

Regards,

David

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Is it possible to combine the power of Postgres and Python in do statement?
  2021-10-05 13:05 Is it possible to combine the power of Postgres and Python in do statement? Shaozhong SHI <shishaozhong@gmail.com>
@ 2021-10-05 14:32 ` Tom Lane <tgl@sss.pgh.pa.us>
  2021-10-05 15:48   ` Re: Is it possible to combine the power of Postgres and Python in do statement? Shaozhong SHI <shishaozhong@gmail.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Tom Lane @ 2021-10-05 14:32 UTC (permalink / raw)
  To: Shaozhong SHI <shishaozhong@gmail.com>; +Cc: pgsql-sql <pgsql-sql@lists.postgresql.org>

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





^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Is it possible to combine the power of Postgres and Python in do statement?
  2021-10-05 13:05 Is it possible to combine the power of Postgres and Python in do statement? Shaozhong SHI <shishaozhong@gmail.com>
  2021-10-05 14:32 ` Re: Is it possible to combine the power of Postgres and Python in do statement? Tom Lane <tgl@sss.pgh.pa.us>
@ 2021-10-05 15:48   ` Shaozhong SHI <shishaozhong@gmail.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Shaozhong SHI @ 2021-10-05 15:48 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-sql <pgsql-sql@lists.postgresql.org>

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
>

^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2021-10-05 15:48 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-10-05 13:05 Is it possible to combine the power of Postgres and Python in do statement? Shaozhong SHI <shishaozhong@gmail.com>
2021-10-05 14:32 ` Tom Lane <tgl@sss.pgh.pa.us>
2021-10-05 15:48   ` Shaozhong SHI <shishaozhong@gmail.com>

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox