Re: fix bgworkers in EXEC_BACKEND - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: fix bgworkers in EXEC_BACKEND
Date
Msg-id 20130102162819.GA5008@alvh.no-ip.org
Whole thread Raw
In response to Re: fix bgworkers in EXEC_BACKEND  (Alvaro Herrera <alvherre@2ndquadrant.com>)
List pgsql-hackers
I committed this with minor tweaks to avoid having to scan the
registered workers list on each registration.  Opinions on this error
report are still welcome:

> +               ereport(LOG,
> +                               (errcode(ERRCODE_CONFIGURATION_LIMIT_EXCEEDED),
> +                                errmsg("too many background workers"),
> +                                errdetail("Up to %d background workers can be registered with the current
settings.",
> +                                                  MAX_BACKENDS - (MaxConnections + autovacuum_max_workers + 1))));

Thanks to everyone for their input --- and happy 2013 hacking to all.

--
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services



pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: Minor fix in 'clean' action of 'src/backend/Makefile'
Next
From: Dmitriy Igrishin
Date:
Subject: Re: allowing multiple PQclear() calls