Re: PATCH: pgbench - merging transaction logs - Mailing list pgsql-hackers

From Andres Freund
Subject Re: PATCH: pgbench - merging transaction logs
Date
Msg-id 56DC0C49-7E56-4A43-8230-6D62C6C74D91@2ndquadrant.com
Whole thread Raw
In response to Re: PATCH: pgbench - merging transaction logs  (Fabien COELHO <coelho@cri.ensmp.fr>)
List pgsql-hackers
On March 23, 2015 8:00:04 PM GMT+01:00, Fabien COELHO <coelho@cri.ensmp.fr> wrote:
>
>> Guys, I don't see this theoretical discussion going anywhere. I think
>> it's time to simply implement this and evaluate it on a bigger
>> machine.
>
>Sure. I was kind of hoping that someone else would implement it,
>because 
>I'm a reviewer on this one, and I do not have the bigger machine at
>hand 
>either:-) If nothing happens and when I have some time, I'll do it.

It wasn't specifically aimed at you...

>> It can't take very long to implement tosimply just write to one
>> file instead of the multiple files as now.
>
>Sure.
>
>> The posix guaranteed fprintf locking should already take care of the 
>> rest.
>
>I think I would try with snprintf to reduce locking.

Glibc's locking is around the streambuffer IIRC. So that's not likely to do much...


-- 
Please excuse brevity and formatting - I am writing this on my mobile phone.

Andres Freund                       http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services



pgsql-hackers by date:

Previous
From: Peter Geoghegan
Date:
Subject: Re: Abbreviated keys for Numeric
Next
From: Robert Haas
Date:
Subject: Re: Abbreviated keys for Numeric