Background worker assistance & review
От | Keith Fiske |
---|---|
Тема | Background worker assistance & review |
Дата | |
Msg-id | CAG1_KcAo_24d_dJSzZncgNuT+xr2gWJfi97Uq60aR5gTndtbiw@mail.gmail.com обсуждение исходный текст |
Ответы |
Re: Background worker assistance & review
|
Список | pgsql-general |
I'm working on a background worker (BGW) for my pg_partman extension. I've gotten the basics of it working for my first round, but there's two features I'm missing that I'd like to add before release:
1) Only allow one instance of this BGW to runI used the worker_spi example for a lot of this, so if there's any additional guidance for a better way to do what I've done, I'd appreciate it. All I really have it doing now is calling the run_maintenance() function at a defined interval and don't need it doing more than that yet.
https://gist.github.com/keithf4/0047eae0b3a22829d527
В списке pgsql-general по дате отправления: