Re: Using transactions with plpythonu

Поиск
Список
Период
Сортировка
От imageguy
Тема Re: Using transactions with plpythonu
Дата
Msg-id 1169390885.070947.228130@q2g2000cwa.googlegroups.com
обсуждение исходный текст
Ответ на Re: Using transactions with plpythonu  (Martijn van Oosterhout <kleptog@svana.org>)
Список pgsql-general
Martijn van Oosterhout wrote:
> On Sun, Jan 21, 2007 at 04:56:23AM -0800, imageguy wrote:
> > Does anyone have an example of using transactions with plpythonu ?
> >
> > In my testing so far, it seems that each call to plpy.execute('INSERT
> > INTO ....') is committed immediately.
>
> What happens if you do:
>
> plpy.execute("BEGIN");
>
> before and after
>
> plpy.execute("COMMIT");
>
> Have a nice day,
> --
> Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> > From each according to his ability. To each according to his ability to litigate.
>
> --4ZLFUWh1odzi/v6L
> Content-Type: application/pgp-signature
> Content-Disposition: inline;
>     filename="signature.asc"
> Content-Description: Digital signature
> X-Google-AttachSize: 190


В списке pgsql-general по дате отправления:

Предыдущее
От: "Chad Wagner"
Дата:
Сообщение: Re: More grist for the PostgreSQL vs MySQL mill
Следующее
От: "imageguy"
Дата:
Сообщение: Re: Using transactions with plpythonu