Re: Connecting to an existing transaction state.

Поиск
Список
Период
Сортировка
От Francisco Reyes
Тема Re: Connecting to an existing transaction state.
Дата
Msg-id e91fd9d0e3ecbd2fd9934bd956133965@stringsutils.com
обсуждение исходный текст
Ответ на Connecting to an existing transaction state.  (Alex Gen <alexigen@yahoo.com>)
Список pgsql-general
On 10:37 am 07/28/08 Alex Gen <alexigen@yahoo.com> wrote:
> 3. Using m01-s2.sql I would like to execute a certain SQL statement
> – BUT within the scope of the transaction begun by m01-s1.sql.

I believe that is not possible.
Specially if you are within a transaction on each of the scripts.

As far as I know all the work getting done inside a transaction is ONLY
visible to that transaction. It would actually be pretty bad if the
database allowed a process to see an uncommited state from a transaction
that may end up rolling back.

What are you trying to test?
You mentioned how you are testing, but what is the business need? Or
business concern?

ie It could be something like.. we are concerned that if we run these two
scripts one may lock the other.


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

Предыдущее
От: "Francisco Reyes"
Дата:
Сообщение: Re: Problem running script
Следующее
От: Stephen Frost
Дата:
Сообщение: Re: Must be table owner to truncate?