pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: armand pirvu <armand.pirvu@gmail.com>
To: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: connection dropped from the backend server
Date: Tue, 27 Mar 2018 18:07:58 -0500
Message-ID: <5FCACAED-139A-4D38-80AA-895C5884631E@gmail.com> (raw)
In-Reply-To: <9c4890fe-df61-eae9-48c0-f01fbafedf3a@aklaver.com>
References: <88B8EEC2-917D-498D-938B-DD4C2C3C7008@gmail.com>
	<9c4890fe-df61-eae9-48c0-f01fbafedf3a@aklaver.com>

As long as the connection stays up yes data gets fine across 
In pg_stat_activity I see the node ip address where tail -f piped into psql happens



Sent from my iPhone

> On Mar 27, 2018, at 6:03 PM, Adrian Klaver <adrian.klaver@aklaver.com> wrote:
> 
>> On 03/27/2018 03:36 PM, armand pirvu wrote:
>> Hi all
>> I have a process of some data manipulation and ultimate transfer to a postgres database
>> A DML statement gest concoted with the transformed data and pusshed into a named pipe
>> The named pipe is tailed -f in the background like this
>> nohup $SHELL <<EOF &
>> tail -f /u1/sys_admin/dba/mypipe.fifo | psql -U csidba -d repdb -h rephost
>> EOF
>> All good BUT I do notice every say 10 min although I see the tail and psql processes in the ps output, looking in pg_stat_activity there is really nothing the host I run the nohuped tail
> 
> Could it be that pg_stat_activity shows nothing because the DML has completed when you look?
> 
> Does the data find its way into the database?
> 
>> Any suggestions how to approach this/make it better/monitor ?
>> Thanks
>> -- Armand
> 
> 
> -- 
> Adrian Klaver
> adrian.klaver@aklaver.com




view thread (8+ messages)  latest in thread

Message-ID: <5FCACAED-139A-4D38-80AA-895C5884631E@gmail.com>
Permalink:  ../5FCACAED-139A-4D38-80AA-895C5884631E@gmail.com/
Also on:    postgresql.org/message-id/5FCACAED-139A-4D38-80AA-895C5884631E@gmail.com

 · 

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-general@postgresql.org
  Cc: armand.pirvu@gmail.com, adrian.klaver@aklaver.com
  Subject: Re: connection dropped from the backend server
  In-Reply-To: <5FCACAED-139A-4D38-80AA-895C5884631E@gmail.com>
  References: <88B8EEC2-917D-498D-938B-DD4C2C3C7008@gmail.com> <9c4890fe-df61-eae9-48c0-f01fbafedf3a@aklaver.com> <5FCACAED-139A-4D38-80AA-895C5884631E@gmail.com>

* 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