| От | Alvaro Herrera |
|---|---|
| Тема | Re: Instability in TRUNCATE regression test |
| Дата | |
| Msg-id | 20060628170416.GD17673@surnet.cl обсуждение исходный текст |
| Ответ на | Instability in TRUNCATE regression test (Tom Lane <tgl@sss.pgh.pa.us>) |
| Ответы |
Re: Instability in TRUNCATE regression test
|
| Список | pgsql-hackers |
Tom Lane wrote: > 1. Find a way to make the processing order consistent (eg by driving it > off OID ordering). Doesn't seem easy, but maybe I'm missing an idea. Hmm, what about 1. get the complete list of tables to truncate, AccessShareLock'ed, get their names 2. release locks 3. sort the list lexicographically (or by Oid, whatever) 4. acquire the stronger locks, in list order, taking care of not aborting if a table is no longer there 5. truncate -- Alvaro Herrera http://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера