Re: creating a table in plpython?

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Celia McInnis <celia(dot)mcinnis(at)gmail(dot)com>
Cc: "pgsql-generallists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: creating a table in plpython?
Date: 2018-01-10 23:34:05
Message-ID: CAKFQuwZG1POaPQa2MgfgOgg2FF0aSY52gi0cb46OSvh5hGng6Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Jan 10, 2018 at 4:27 PM, Celia McInnis <celia(dot)mcinnis(at)gmail(dot)com>
wrote:

> Hi - Is it possible to create a table inside a plpython stored procedure?
> If so, can you give an example of how to do so?
>
>
​Haven't used pl/python myself but...​

​https://www.postgresql.org/docs/10/static/plpython-database.html

so... plpy.execute("CREATE TABLE ...") ?

David J.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Celia McInnis 2018-01-10 23:46:43 Re: creating a table in plpython?
Previous Message Celia McInnis 2018-01-10 23:27:10 creating a table in plpython?