pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: Re: [COMMITTERS] pgsql: pgbench: Allow the transaction log file prefix to be changed.
Date: Wed, 09 Nov 2016 22:08:06 -0500
Message-ID: <10286.1478747286@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+TgmobmhHzwg0Njm2=MRokokT4+jkCRm661as7DJeRzbfO9zg@mail.gmail.com>
References: <E1c4aVl-00044e-F3@gemulon.postgresql.org>
	<30410.1478728319@sss.pgh.pa.us>
	<CA+TgmobmhHzwg0Njm2=MRokokT4+jkCRm661as7DJeRzbfO9zg@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Robert Haas <robertmhaas@gmail.com> writes:
> On Wed, Nov 9, 2016 at 4:51 PM, Tom Lane <tgl@sss.pgh.pa.us> 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



view thread (6+ messages)  latest in thread

Message-ID: <10286.1478747286@sss.pgh.pa.us>
Permalink:  ../10286.1478747286@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/10286.1478747286@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, robertmhaas@gmail.com, pgsql-hackers@postgresql.org
  Subject: Re: [COMMITTERS] pgsql: pgbench: Allow the transaction log file prefix to be changed.
  In-Reply-To: <10286.1478747286@sss.pgh.pa.us>
  References: <E1c4aVl-00044e-F3@gemulon.postgresql.org> <30410.1478728319@sss.pgh.pa.us> <CA+TgmobmhHzwg0Njm2=MRokokT4+jkCRm661as7DJeRzbfO9zg@mail.gmail.com> <10286.1478747286@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox