Re: BUG #6706: pg_upgrade fails when plpgsql dropped/re-created
В списке pgsql-bugs по дате отправления:
| От | cowwoc |
|---|---|
| Тема | Re: BUG #6706: pg_upgrade fails when plpgsql dropped/re-created |
| Дата | |
| Msg-id | 1421096310746-5833673.post@n5.nabble.com обсуждение |
| Ответ на | Re: BUG #6706: pg_upgrade fails when plpgsql dropped/re-created (Andres Freund <andres@2ndquadrant.com>) |
| Список | pgsql-bugs |
Andres Freund-3 wrote > cowwoc just talked about this on irc, and the explanation very likely is > that the extension commands are run in parallel on several > connections. > > Greetings, > > Andres Freund Correct. Executing CREATE EXTENSION IF NOT EXISTS hstore SCHEMA public concurrently from multiple connections triggers the error in question. Andres suggested the following workaround which worked for me: LOCK pg_extension; CREATE EXTENSION IF NOT EXISTS hstore SCHEMA public; Meaning, simply lock pg_extension before attempting to create the extension. Gili -- View this message in context: http://postgresql.nabble.com/BUG-6706-pg-upgrade-fails-when-plpgsql-dropped-re-created-tp5714220p5833673.html Sent from the PostgreSQL - bugs mailing list archive at Nabble.com.
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера