Re: [QUESTIONS] Re: [HACKERS] Re: locking

Поиск
Список
Период
Сортировка
От Leslie Mikesell
Тема Re: [QUESTIONS] Re: [HACKERS] Re: locking
Дата
Msg-id 199801211555.JAA05611@Mars.mcs.net
обсуждение исходный текст
Ответ на Re: [HACKERS] Re: locking  (Bruce Momjian <maillist@candle.pha.pa.us>)
Список pgsql-hackers
> >
> >  Q : will this locking prevent update of the rows in TESTTABLE that have
> > been SELECTed ?
> >
>
> While the SELECT is running, no one can update the table.  If the SELECT
> is in a transaction, no one can update the table until the transaction
> completes.  Other people can read from the table, though.

Does only one transaction run at a time?  That is, if you have a
transaction from client A that does a select followed by an update
and client B attempts the same thing, will the read portion of
B's transaction be deferred until A's commit completes, while
a non-transaction select (read only) from B would be allowed to
proceed?

  Les Mikesell

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

Предыдущее
От: The Hermit Hacker
Дата:
Сообщение: Re: [PORTS] -current version won't initdb under i386_solaris...
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] subselects