Re: Implementing 2 different transactions in a PL/Perl function

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: Implementing 2 different transactions in a PL/Perl function
Дата
Msg-id 4693E210.8080604@archonet.com
обсуждение исходный текст
Ответ на Implementing 2 different transactions in a PL/Perl function  ("Jasbinder Singh Bali" <jsbali@gmail.com>)
Ответы Re: Implementing 2 different transactions in a PL/Perl function  ("Jasbinder Singh Bali" <jsbali@gmail.com>)
Список pgsql-general
Jasbinder Singh Bali wrote:
> Hi,
>
> How can I have two different transactions is a plperlu function?
> My purpose is as follows:-
>
> Transaction 1 does some series of inserts in tbl_abc
> Transaction 2 updates some columns in tbl_abc fetching records from some
> other table.

You'll have to connect back to yourself using dblink() or dbilink() -
see contrib/ for details.

Don't forget to consider what it means to have a connection string in a
function-body either.

--
   Richard Huxton
   Archonet Ltd

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

Предыдущее
От: Ben
Дата:
Сообщение: Am I missing something about the output of pg_stop_backup()?
Следующее
От: "Andrej Ricnik-Bay"
Дата:
Сообщение: Re: Hyper-Trading