Re: SimpleTee flush

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Kevin Grittner <kgrittn(at)ymail(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: SimpleTee flush
Date: 2015-08-30 15:28:07
Message-ID: 21683.1440948487@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Kevin Grittner <kgrittn(at)ymail(dot)com> writes:
> I find the TestLib.pm framework to be more friendly with the
> attached tweak to SimpleTee.pm. It's not a big deal, so if anyone
> objects I'll let it drop, and I don't think it merits anything
> fancier.

Just out of curiosity --- what's the rationale for flushing after
every line, rather than once at the end of the loop? Is there
actual input-reading going on underneath the @$self notation?
If it's just dumping data from process memory, I should think
one flush would be sufficient.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2015-08-30 15:32:08 Re: WIP: About CMake v2
Previous Message Kevin Grittner 2015-08-30 15:14:49 SimpleTee flush