Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c4fk9-00008Q-K5 for pgsql-hackers@arkaria.postgresql.org; Thu, 10 Nov 2016 03:09:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1c4fk9-0005Zi-26 for pgsql-hackers@arkaria.postgresql.org; Thu, 10 Nov 2016 03:09:37 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1c4fij-00040y-T0 for pgsql-hackers@postgresql.org; Thu, 10 Nov 2016 03:08:10 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1c4fih-0002jn-JM for pgsql-hackers@postgresql.org; Thu, 10 Nov 2016 03:08:08 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id uAA386M9010287; Wed, 9 Nov 2016 22:08:06 -0500 From: Tom Lane To: Robert Haas cc: "pgsql-hackers@postgresql.org" Subject: Re: Re: [COMMITTERS] pgsql: pgbench: Allow the transaction log file prefix to be changed. In-reply-to: References: <30410.1478728319@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Wed, 09 Nov 2016 19:03:40 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <10285.1478747286.1@sss.pgh.pa.us> Date: Wed, 09 Nov 2016 22:08:06 -0500 Message-ID: <10286.1478747286@sss.pgh.pa.us> X-Pg-Spam-Score: -4.8 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Robert Haas writes: > On Wed, Nov 9, 2016 at 4:51 PM, Tom Lane wrote: >> Perhaps the "logpath" buffer that the filename is constructed in >> needs to be made bigger. 64 bytes was obviously enough with the >> old pattern, but it's not with the new. > Oops, yes, that seems like a good idea. How about 64 -> MAXPGPATH? If we want to stick with the fixed-size-buffer-on-stack approach, that would be the thing to use. psprintf is another possibility, though that would add a malloc/free cycle. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers