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 1f0xd6-0004C2-Ns for pgsql-general@arkaria.postgresql.org; Tue, 27 Mar 2018 23:03:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f0xd4-0005Ul-JX for pgsql-general@arkaria.postgresql.org; Tue, 27 Mar 2018 23:03:46 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f0xd3-0005UN-Jo for pgsql-general@lists.postgresql.org; Tue, 27 Mar 2018 23:03:46 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f0xd0-0001jY-68 for pgsql-general@lists.postgresql.org; Tue, 27 Mar 2018 23:03:45 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 7194A2145D; Tue, 27 Mar 2018 19:03:40 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Tue, 27 Mar 2018 19:03:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= 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=XXER02ANFDxVgJ+T+qJUxfaqmycB1 OnqYxqzuxBSRjQ=; b=IXPMzm5cYGmpcyqpsW41oAHmJG/xRCrG/aWpIJOU/Qowx NHacTCZ40TyYVPeo3dhhpapq82W7iP8ARwGf90Z5PEPUOuj6mCYLmrKifx7hg7Id +Y2PQauxuN+U2/YLiCZABrZqvZRv93aF+01AL2gyaM55XpowgjCaXpzc6q32AegD 90zPB5Dq35ojeCB1czNcobREEqj9L8hHLXhOmoMLTcRhHIVvDqE2Xn1/0g4W256H 5kFlDPVr/F1IYflEJD11TdnJFudu3steDnzeJFMRm6vi0iqb5C2AUu63M88wS5ri zHAvnVSRxYr0Pc3lUmOkwlnJOdfRaC0pHLMvRs5iw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=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=XXER02 ANFDxVgJ+T+qJUxfaqmycB1OnqYxqzuxBSRjQ=; b=VSvX6jY2kUo6UR/gEqQD1S Lfhtz79wW87B7RSI9FpMJOK99eRp8OrBLQtr/CjWq58NKQIihrLA4/FyJYmdYWxl uklqwx8BHCuoRJ4oGzlOubZGon1z/DqklfUEL/fZS3jzuQw/9ZO8+aYWJLUgnL2M fB1oegitqSOehZlUGaLP3LTXATU6BJNTCihdx/yrQitg4Dn4qQWBxwhri5MFtyGs QeoSl5gorCpwTw19EEkaB+AJJCn9F1IYSgKZJ/cOpJMMfmo5GYYpeA9D09hP1kWy GnAam9tK6woUmcR7RXiZNo/3bwmDfwNb2OaYN8s2Uh18qtPMOHPJs05l6ZMA86QA == 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 E6A8210258; Tue, 27 Mar 2018 19:03:39 -0400 (EDT) Subject: Re: connection dropped from the backend server To: armand pirvu , pgsql-general@lists.postgresql.org References: <88B8EEC2-917D-498D-938B-DD4C2C3C7008@gmail.com> From: Adrian Klaver Message-ID: <9c4890fe-df61-eae9-48c0-f01fbafedf3a@aklaver.com> Date: Tue, 27 Mar 2018 16:03:38 -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: <88B8EEC2-917D-498D-938B-DD4C2C3C7008@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 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