Re: Can I read the data without commit

Поиск
Список
Период
Сортировка
От Rob Sargent
Тема Re: Can I read the data without commit
Дата
Msg-id 4F6CEF22.5040205@gmail.com
обсуждение исходный текст
Ответ на Re: Can I read the data without commit  ("Jonathan S. Katz" <jonathan.katz@excoventures.com>)
Ответы Re: Can I read the data without commit  (John Fabiani <johnf@jfcomputer.com>)
Список pgsql-sql
If possible have the review done before starting the transaction.  No 
sense in holding on to that stuff too long. Potential concurrency issues 
etc.

On 03/23/2012 03:40 PM, Jonathan S. Katz wrote:
> On Mar 23, 2012, at 5:33 PM, John Fabiani wrote:
>
>> I start a transaction.
>> Begin
>>
>> Then I insert a lot of data - let's say two hundred rows.
>>
>> Now I need to read the same data (so the user can review).
>>
>> If the user thinks all is right then
>> commit.
>>
>> Can I read the data I just inserted without committing?
>
> Yes, as long as you run your SELECT within the transaction that you started.
>
> Jonathan
>



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

Предыдущее
От: "Jonathan S. Katz"
Дата:
Сообщение: Re: Can I read the data without commit
Следующее
От: John Fabiani
Дата:
Сообщение: Re: Can I read the data without commit