Re: broken documentation: BackgroundWorkerInitializeConnection(NULL, NULL);

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: broken documentation: BackgroundWorkerInitializeConnection(NULL, NULL);
Дата
Msg-id CA+TgmoaND7hng6F+38Jn7=iteoO4QvDxcJk9vUcC1yrtRUbsGw@mail.gmail.com
обсуждение исходный текст
Ответ на broken documentation: BackgroundWorkerInitializeConnection(NULL, NULL);  (Pavel Stehule <pavel.stehule@gmail.com>)
Ответы Re: broken documentation: BackgroundWorkerInitializeConnection(NULL, NULL);  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
On Thu, May 14, 2015 at 8:25 AM, Pavel Stehule <pavel.stehule@gmail.com> wrote:
> The documentation (or this feature) is broken still
>
> If dbname is NULL or dboid is InvalidOid, the session is not connected to
> any particular database, but shared catalogs can be accessed. If username is
> NULL or useroid is InvalidOid, the process will run as the superuser created
> during initdb. A background worker can only call one of these two functions,
> and only once. It is not possible to switch databases.
>
> But it fails with error:
>
> FATAL:  database 0 does not exist

Ugh.  I think that's a bug.

Patch attached.

The test code I used to verify that this works is also attached.

If there are no objections, I will commit and back-patch.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: PATCH: adaptive ndistinct estimator v4
Следующее
От: Robert Haas
Дата:
Сообщение: Re: broken documentation: BackgroundWorkerInitializeConnection(NULL, NULL);