Re: auto-sizing wal_buffers
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Greg Smith <greg@2ndquadrant.com>, Fujii Masao <masao.fujii@gmail.com>, Magnus Hagander <magnus@hagander.net>, pgsql-hackers@postgresql.org
Date: 2011-01-23T02:24:48Z
Lists: pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes: > I'm going with hacks. Any API that requires you to print to a string > so you can turn around and immediately convert it back to an integer > is not too swift. Oh, you're complaining about SetConfigOption, not the assign hooks. Not sure if it's really worth refactoring that. The problem is that there are lots and lots and lots of places that need to call that *without* any dependency on what the datatype of the target GUC option really is. There are a small number where we do know the type and conversion to a string is just overhead. If any of those were performance-critical it might be worth worrying about, but this one certainly isn't. regards, tom lane