From: | Celia McInnis <celia(dot)mcinnis(at)gmail(dot)com> |
---|---|
To: | "David G(dot) Johnston" <david(dot)g(dot)johnston(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:46:43 |
Message-ID: | CAGD6t7+b9uQ2c99VTugObffVFiL6k98q22e8Rmd-FxZSu6ApMQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Thanks - works like a charm. Hmmm. I tried that earlier and got errors. I
just retried and it worked fine this time. I guess I had some other problem
- It seems that sometimes I have to exit and reenter my psql session to use
a newly interpreted version of my stored procedure, so maybe that was part
of the problem...
On Wed, Jan 10, 2018 at 6:34 PM, David G. Johnston <
david(dot)g(dot)johnston(at)gmail(dot)com> wrote:
> 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.
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | Andreas 'ads' Scherbaum | 2018-01-11 03:35:36 | FOSDEM booth volunteer |
Previous Message | David G. Johnston | 2018-01-10 23:34:05 | Re: creating a table in plpython? |