Re: SimpleTee flush - Mailing list pgsql-hackers

From Kevin Grittner
Subject Re: SimpleTee flush
Date
Msg-id 212539312.1983337.1440949165381.JavaMail.yahoo@mail.yahoo.com
Whole thread Raw
In response to Re: SimpleTee flush  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: SimpleTee flush  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane <tgl@sss.pgh.pa.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



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Information of pg_stat_ssl visible to all users
Next
From: Tom Lane
Date:
Subject: Re: SimpleTee flush