Re: SimpleTee flush

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

Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> 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.

Isn't the loop over file handles written to? What would you flush
outside the loop?

--
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2015-08-30 15:51:14 Re: SimpleTee flush
Previous Message Andres Freund 2015-08-30 15:35:41 Re: Information of pg_stat_ssl visible to all users