Re: small parallel restore optimization
Andrew Dunstan <andrew@dunslane.net>
From: Andrew Dunstan <andrew@dunslane.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: ohp@pyrenet.fr, Guillaume Smet <guillaume.smet@gmail.com>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2009-03-07T23:51:08Z
Lists: pgsql-hackers
Tom Lane wrote: > ohp@pyrenet.fr writes: > >> the only thing I could come with is a calloc(1,12) that seems to alloc >> mem for filename, in that case sdewitte.dmp; so the alloc is not counting >> the null char at the end. >> > > Where do you see that? The memtool dump you sent doesn't show it AFAICS. > > > And the only copying of the filename that I can find is done with strdup(). cheers andrew