Re: Can I read the data without commit

Поиск
Список
Период
Сортировка
От Jonathan S. Katz
Тема Re: Can I read the data without commit
Дата
Msg-id F4CA35B7-B59B-4226-BEC4-AA13636F446E@excoventures.com
обсуждение исходный текст
Ответ на Can I read the data without commit  (John Fabiani <johnf@jfcomputer.com>)
Ответы Re: Can I read the data without commit  (Rob Sargent <robjsargent@gmail.com>)
Список pgsql-sql
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 по дате отправления:

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