Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 500301337B6C for ; Sat, 22 Jan 2011 22:42:37 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 78359-03 for ; Sun, 23 Jan 2011 02:42:32 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id AB46B1337B47 for ; Sat, 22 Jan 2011 22:42:29 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p0N2gQAf000807; Sat, 22 Jan 2011 21:42:26 -0500 (EST) To: Robert Haas cc: Greg Smith , Fujii Masao , Magnus Hagander , pgsql-hackers@postgresql.org Subject: Re: auto-sizing wal_buffers In-reply-to: References: <20767.1294964709@sss.pgh.pa.us> <4D314406.3000703@2ndquadrant.com> <4D31D0E4.9000108@2ndquadrant.com> <11561.1295742146@sss.pgh.pa.us> <29279.1295746434@sss.pgh.pa.us> <202.1295748502@sss.pgh.pa.us> <508.1295749488@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Sat, 22 Jan 2011 21:26:42 -0500" Date: Sat, 22 Jan 2011 21:42:26 -0500 Message-ID: <806.1295750546@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201101/2207 X-Sequence-Number: 180044 Robert Haas writes: >> Oh, you're complaining about SetConfigOption, not the assign hooks. > I was actually complaining about the latter, and then switched gears > to the former. I'm an equal-opportunity complainer today, I guess... It does strike me that we could provide SetConfigOptionInt, SetConfigOptionBool, and SetConfigOptionReal for the benefit of callers who'd prefer to pass values in those formats. They'd still do sprintf internally, but this would make the call sites a bit cleaner. In a quick tally, though, I see only a couple of potential callers for SetConfigOptionInt, perhaps a dozen for SetConfigOptionBool, and none at all for SetConfigOptionReal. Hence not sure it's worth the trouble. regards, tom lane