Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f0xkl-0004hv-Gl for pgsql-general@arkaria.postgresql.org; Tue, 27 Mar 2018 23:11:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f0xkk-0006Mn-FT for pgsql-general@arkaria.postgresql.org; Tue, 27 Mar 2018 23:11:42 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f0xkk-0006Mb-4W for pgsql-general@lists.postgresql.org; Tue, 27 Mar 2018 23:11:42 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f0xkc-0003Gs-RI for pgsql-general@lists.postgresql.org; Tue, 27 Mar 2018 23:11:40 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 0012C20BFD; Tue, 27 Mar 2018 19:11:33 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Tue, 27 Mar 2018 19:11:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=4tRcJXEmp7/VXiSbv8lZWZlHk/iFB Q6PuyWJyywcCnk=; b=S9jT1L7kob9+YWZRezcGgyHyjqiTmF5rbgH15Oi9bbiRm 6u/dAUF17MUfrDMPiDNUbpVhXRT4h1wBgtD9JTfUTT1DsRwXzZAl546OaLUdGwjs M2UGFW4/5Av0FYcMd1+/bIPjGxZE05KnHemQbTWYCEmBZQpAoHfHOv/01Xz/QXAk Eek509I27I1qhomNXD/+gJPWQcUuXyMzsLhxt4sWBp6FzQXwF50MZmQlttaZtc7E qEtiPKRdslwkdXB84dwFWnQ6k8ReoJNFpRhnwfK2g3LTC0X3pTwj5zxJwYJ9fCgO M63AOP/8ek59OuK51A0hiFhk9KPoMrrlheAK8sVCw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=4tRcJX Emp7/VXiSbv8lZWZlHk/iFBQ6PuyWJyywcCnk=; b=alsCnYLx8wvXMjzi9eWa9e kxS9N/zCk3+TVObgnvdiaca7dA/k+MPRk7ftVmuqP8ErklWhO8bZiPMwkVmkOgIG rONcenowFaZcO3QXQcBd/W98yI61AgQKBr7d/aCBgiv5R9ppSFf/H83x1l/EOUUU PXn1CpeQMgS5P9u8zcQN1GiOLnyewW6PEL5oD77axbplrJotVfJpidFn+RKgaY01 s3tp+APhe9FOA+0/f4eR6UzpndYQOAHHqVo57gcWulY4eXkGI/SddZNS079ucTPG U+K2C/6+cm4SwKV0nXmz8btiv+Q+pVHCfrjhKShKm9Mce9Fmshtfhd5byRZ51zKA == X-ME-Sender: Received: from [192.168.1.2] (71-35-123-124.tukw.qwest.net [71.35.123.124]) by mail.messagingengine.com (Postfix) with ESMTPA id 7136510252; Tue, 27 Mar 2018 19:11:33 -0400 (EDT) Subject: Re: connection dropped from the backend server To: armand pirvu Cc: pgsql-general@lists.postgresql.org References: <88B8EEC2-917D-498D-938B-DD4C2C3C7008@gmail.com> <9c4890fe-df61-eae9-48c0-f01fbafedf3a@aklaver.com> <5FCACAED-139A-4D38-80AA-895C5884631E@gmail.com> From: Adrian Klaver Message-ID: <0b0e0503-0e34-32cd-50a7-9be77601a2a5@aklaver.com> Date: Tue, 27 Mar 2018 16:11:32 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <5FCACAED-139A-4D38-80AA-895C5884631E@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 03/27/2018 04:07 PM, armand pirvu wrote: > 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 So what does the rest of that record show? In particular for: state query backend_start and any others you might think are important from here: https://www.postgresql.org/docs/10/static/monitoring-stats.html#PG-STAT-ACTIVITY-VIEW > > > > Sent from my iPhone > >> On Mar 27, 2018, at 6:03 PM, Adrian Klaver 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 <>> 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 > -- Adrian Klaver adrian.klaver@aklaver.com