Re: Avoid long-running transactions in a long-running stored procedure?
В списке pgsql-performance по дате отправления:
| От | Josh Berkus |
|---|---|
| Тема | Re: Avoid long-running transactions in a long-running stored procedure? |
| Дата | |
| Msg-id | 200802141729.18657.josh@agliodbs.com обсуждение |
| Ответ на | Avoid long-running transactions in a long-running stored procedure? ("David Crane" <davidc@donorschoose.org>) |
| Ответы |
Re: Avoid long-running transactions in a long-running
stored procedure?
|
| Список | pgsql-performance |
David, > Once per quarter, we need to load a lot of data, which causes many > updates across the database. We have an online transaction > processing-style application, which we really want to stay up during the > update job. What you're talking about is "autonomous transactions". There's someone working on them for 8.4, and we may get them next version, but you can't have them now. However, you can write your stored procedures in an external language (like PL/Perl, PL/Ruby, PL/Java or PL/Python) and re-connect to your database in order to run several separate transactions. Several users are doing this for large ETL jobs. -- --Josh Josh Berkus PostgreSQL @ Sun San Francisco
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера