| От | Jim C. Nasby |
|---|---|
| Тема | Race condition in dropdb;createdb |
| Дата | |
| Msg-id | 20051003223502.GS40138@pervasive.com обсуждение исходный текст |
| Список | pgsql-bugs |
decibel@phonebook.1[17:32]~:1%createdb test; CREATE DATABASE decibel@phonebook.1[17:32]~:2%dropdb test; createdb test; DROP DATABASE createdb: database creation failed: ERROR: source database "template1" is being accessed by other users decibel@phonebook.1[17:32]~:3% I realize that the changes made in 8.1 WRT using the postgres database fix this particular case, but is there a bigger issue with there being a race condition here? Presumably dropdb returns before the connection is actually closed from the database's standpoint... -- Jim C. Nasby, Sr. Engineering Consultant jnasby@pervasive.com Pervasive Software http://pervasive.com work: 512-231-6117 vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера