Re: [HACKERS] Problem with background worker

2013-04-10 Thread Alvaro Herrera
Marc Cousin escribió: > On 20/03/2013 16:33, Alvaro Herrera wrote: > >Ah. The reason for this problem is that the statement start time (which > >also sets the transaction start time, when it's the first statement) is > >set by postgres.c, not the transaction-control functions in xact.c. So > >yo

Re: [HACKERS] Problem with background worker

2013-03-24 Thread Guillaume Lelarge
On Wed, 2013-03-20 at 13:13 -0300, Alvaro Herrera wrote: > Marc Cousin escribió: > > On 20/03/2013 16:33, Alvaro Herrera wrote: > > > >Ah. The reason for this problem is that the statement start time (which > > >also sets the transaction start time, when it's the first statement) is > > >set by p

Re: [HACKERS] Problem with background worker

2013-03-20 Thread Alvaro Herrera
Marc Cousin escribió: > On 20/03/2013 16:33, Alvaro Herrera wrote: > >Ah. The reason for this problem is that the statement start time (which > >also sets the transaction start time, when it's the first statement) is > >set by postgres.c, not the transaction-control functions in xact.c. So > >yo

Re: [HACKERS] Problem with background worker

2013-03-20 Thread Marc Cousin
On 20/03/2013 16:33, Alvaro Herrera wrote: Marc Cousin escribió: Hi, I'm trying to write a background writer, and I'm facing a problem with timestamps. The following code is where I'm having a problem (it's just a demo for the problem): BackgroundWorkerInitializeConnection("test", NULL); whil

Re: [HACKERS] Problem with background worker

2013-03-20 Thread Alvaro Herrera
Marc Cousin escribió: > Hi, > > I'm trying to write a background writer, and I'm facing a problem with > timestamps. The following code is where I'm having a problem (it's just a > demo for > the problem): > > BackgroundWorkerInitializeConnection("test", NULL); > while (!got_sigterm) > { >

[HACKERS] Problem with background worker

2013-03-20 Thread Marc Cousin
Hi, I'm trying to write a background writer, and I'm facing a problem with timestamps. The following code is where I'm having a problem (it's just a demo for the problem): BackgroundWorkerInitializeConnection("test", NULL); while (!got_sigterm) { int ret; /* Wait 1s */ re