Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d3zvd-00022t-28 for pgsql-admin@arkaria.postgresql.org; Fri, 28 Apr 2017 07:02:57 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1d3zvc-0006nS-Jd for pgsql-admin@arkaria.postgresql.org; Fri, 28 Apr 2017 07:02:56 +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.84_2) (envelope-from ) id 1d3zvb-0006js-Qz for pgsql-admin@postgresql.org; Fri, 28 Apr 2017 07:02:56 +0000 Received: from r0.smtpout1.alwaysdata.com ([2001:41d0:8:4734:1:0:10:1]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1d3zvT-0005OS-Tw for pgsql-admin@postgresql.org; Fri, 28 Apr 2017 07:02:54 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=alwaysdata.net; s=carxwol; h=In-Reply-To:Content-Transfer-Encoding: Content-Type:MIME-Version:References:Message-ID:Subject:To:From:Date:Sender: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=eSGOLM/eC1BtvD/+zYivYS373+zwuNfkSs14SNTumTE=; b=t4Off+Q8iFEuauGOaoCC0obu4w UFx7VMXsCCzruwwsbqlDU28fFLGW+8J1AGucoUriWHm4CB8vD3SKEUQ9Ih8nTRgfTKYHvGpjq+qzT 54VxU1OL1USOUOtrS8vmyC+Sk3QGgNegUo0Ip3nW/F3S92NuGpYpysCn4plrjZ2I+i+M=; Received: from [78.193.183.71] (helo=office.hexack.fr) by smtpout1.roubaix1.alwaysdata.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.88) (envelope-from ) id 1d3zvM-0002Zi-Da; Fri, 28 Apr 2017 09:02:40 +0200 Date: Fri, 28 Apr 2017 09:03:42 +0200 From: =?utf-8?B?U3TDqXBoYW5l?= KANSCHINE To: Shrinivas Devarkonda , pgsql-admin@postgresql.org Subject: Re: Memory consumption of a sql. Message-ID: <20170428070342.ea2rix6l3od73h6t@office.hexack.fr> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Organization: HexACK User-Agent: NeoMutt/20161126 (1.7.1) X-alwaysdata-ID: 226103821 X-Pg-Spam-Score: -1.8 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Le ven. 28 avril, vers 12:16, Shrinivas Devarkonda exprimait : > Hi All, Hey ! > Is there any way to print / get the memory consumption taken by sql in > postgresql 9.x ? Can we also get/print the data size returned by Sql ? > > There is no parameters in log_line_prefix in postgresql.conf Did you already have a look et pg_stat_statements ? https://www.postgresql.org/docs/9.6/static/pgstatstatements.html Regards, -- Stéphane KANSCHINE - http://www.hexack.fr./ - http://www.nuajik.com./ @ stephane@hexack.fr  +33 6 64 31 72 52 -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin