Skip site navigation (1) Skip section navigation (2)

Re: fix bgworkers in EXEC_BACKEND

From: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
To: Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>
Cc: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: fix bgworkers in EXEC_BACKEND
Date: 2013-01-02 16:28:19
Message-ID: (view raw, whole thread or download thread mbox)
Lists: 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      
PostgreSQL Development, 24x7 Support, Training & Services

In response to

pgsql-hackers by date

Next:From: Dmitriy IgrishinDate: 2013-01-02 16:30:05
Subject: Re: allowing multiple PQclear() calls
Previous:From: Heikki LinnakangasDate: 2013-01-02 16:23:08
Subject: Re: Minor fix in 'clean' action of 'src/backend/Makefile'

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group