| От | Tom Lane |
|---|---|
| Тема | Re: INSERT ... SELECT ... FOR SHARED? |
| Дата | |
| Msg-id | 10288.1208785727@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: INSERT ... SELECT ... FOR SHARED? (Gregory Stark <stark@enterprisedb.com>) |
| Список | pgsql-hackers |
Gregory Stark <stark@enterprisedb.com> writes:
> "Tom Lane" <tgl@sss.pgh.pa.us> writes:
>> The lack of regression tests covering this area is a bit annoying
>> at this point. However, it's hard to see how to test FOR UPDATE
>> until we get some concurrent-sessions support in psql.
> Well, end-to-end testing would e better but we can test that the locks are
> at least being recorded by white-box inspection:
> postgres=# select distinct age(xmax) from tellers;
Huh, that's a cute trick ... and it would answer the immediate problem,
which is to check that the statement did take the row locks it was
supposed to.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера