Re: [HACKERS] broken documentation: BackgroundWorkerInitializeConnection(NULL, NULL);

2015-06-25 Thread Robert Haas
On Thu, May 21, 2015 at 11:47 PM, Alvaro Herrera wrote: > Robert Haas wrote: >> On Fri, May 15, 2015 at 4:15 PM, Alvaro Herrera >> wrote: >> >> Really? I was thinking of the test code as throwaway. I just wanted >> >> to fix the bug. >> > >> > Oh, that's fine then. I thought you wanted to push

Re: [HACKERS] broken documentation: BackgroundWorkerInitializeConnection(NULL, NULL);

2015-05-21 Thread Alvaro Herrera
Robert Haas wrote: > On Fri, May 15, 2015 at 4:15 PM, Alvaro Herrera > wrote: > >> Really? I was thinking of the test code as throwaway. I just wanted > >> to fix the bug. > > > > Oh, that's fine then. I thought you wanted to push it. > > Nah, sorry, I shoulda been more clear about that. That

Re: [HACKERS] broken documentation: BackgroundWorkerInitializeConnection(NULL, NULL);

2015-05-15 Thread Robert Haas
On Fri, May 15, 2015 at 4:15 PM, Alvaro Herrera wrote: >> Really? I was thinking of the test code as throwaway. I just wanted >> to fix the bug. > > Oh, that's fine then. I thought you wanted to push it. Nah, sorry, I shoulda been more clear about that. That was just so I could actually be su

Re: [HACKERS] broken documentation: BackgroundWorkerInitializeConnection(NULL, NULL);

2015-05-15 Thread Alvaro Herrera
Robert Haas wrote: > On Fri, May 15, 2015 at 4:07 PM, Alvaro Herrera > wrote: > > Robert Haas wrote: > >> On Fri, May 15, 2015 at 3:53 PM, Robert Haas wrote: > > > >> > The test code I used to verify that this works is also attached. > >> > > >> > If there are no objections, I will commit and bac

Re: [HACKERS] broken documentation: BackgroundWorkerInitializeConnection(NULL, NULL);

2015-05-15 Thread Robert Haas
On Fri, May 15, 2015 at 4:07 PM, Alvaro Herrera wrote: > Robert Haas wrote: >> On Fri, May 15, 2015 at 3:53 PM, Robert Haas wrote: > >> > The test code I used to verify that this works is also attached. >> > >> > If there are no objections, I will commit and back-patch. >> >> Oops. Really attach

Re: [HACKERS] broken documentation: BackgroundWorkerInitializeConnection(NULL, NULL);

2015-05-15 Thread Alvaro Herrera
Robert Haas wrote: > On Fri, May 15, 2015 at 3:53 PM, Robert Haas wrote: > > The test code I used to verify that this works is also attached. > > > > If there are no objections, I will commit and back-patch. > > Oops. Really attached this time. We have spi_worker in src/test/modules now -- I t

Re: [HACKERS] broken documentation: BackgroundWorkerInitializeConnection(NULL, NULL);

2015-05-15 Thread Robert Haas
On Fri, May 15, 2015 at 3:53 PM, Robert Haas wrote: > On Thu, May 14, 2015 at 8:25 AM, Pavel Stehule > 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

Re: [HACKERS] broken documentation: BackgroundWorkerInitializeConnection(NULL, NULL);

2015-05-15 Thread Robert Haas
On Thu, May 14, 2015 at 8:25 AM, Pavel Stehule 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,

[HACKERS] broken documentation: BackgroundWorkerInitializeConnection(NULL, NULL);

2015-05-14 Thread Pavel Stehule
Hi 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.