Re: Inconsistency between pg_stat_activity and log_duration - Mailing list pgsql-hackers

From Tatsuo Ishii
Subject Re: Inconsistency between pg_stat_activity and log_duration
Date
Msg-id 20140208.083147.7144463289061930.t-ishii@sraoss.co.jp
Whole thread Raw
In response to Re: Inconsistency between pg_stat_activity and log_duration  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
>> The query is piggy backed on the same connection to PostgreSQL opend
>> by user (pgpool-II cannot issue "sync" because it closes the
>> transaction, which in turn closes user's unnamed portal).
> 
> This argument (and usage) seems pretty broken.  If you don't issue
> sync then how do you know you've gotten all of the command's output?
> 
> If you're issuing a flush instead, maybe we could consider whether it's
> reasonable to do an extra pgstat_report_activity() upon receipt of a
> flush message.  But -1 for putting it into the normal control flow.

Pgpool-II issues "flush" of course.

Best regards,
--
Tatsuo Ishii
SRA OSS, Inc. Japan
English: http://www.sraoss.co.jp/index_en.php
Japanese: http://www.sraoss.co.jp



pgsql-hackers by date:

Previous
From: "Erik Rijkers"
Date:
Subject: Re: Changeset Extraction v7.5
Next
From: Andres Freund
Date:
Subject: Re: Changeset Extraction v7.5