| From: | Michael Paquier <michael(dot)paquier(at)gmail(dot)com> |
|---|---|
| To: | PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Mention in bgworker docs that db connection needs shmem access |
| Date: | 2013-07-04 06:01:22 |
| Message-ID: | CAB7nPqStia4HsnFRNAnavvMv=mm7X7kUj+W7oAeHQjfVC=r2vw@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi all,
The bgworker documentation does not explicitely mention that a
bgworker using BGWORKER_BACKEND_DATABASE_CONNECTION needs to have
BGWORKER_SHMEM_ACCESS set as well.
Just to mention, a bgworker using only db connection flag and not
shmem flag will fail at atart-up with this error.
background worker "hello signal worker": must attach to shared memory
in order to request a database connection
Please find attached a patch that improves documentation a bit by
mentioning this restriction. This should normally be backpatched to
9.3 stable.
Thanks,
--
Michael
| Attachment | Content-Type | Size |
|---|---|---|
| 20130704_bgworker_doc.patch | application/octet-stream | 771 bytes |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Amit Kapila | 2013-07-04 06:14:10 | Re: Review: Patch to compute Max LSN of Data Pages |
| Previous Message | Alvaro Herrera | 2013-07-04 02:38:34 | Re: request a new feature in fuzzystrmatch |