Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WZhRn-0003rf-S6 for pgsql-interfaces@arkaria.postgresql.org; Mon, 14 Apr 2014 14:01:20 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WZhRn-0007vH-7u for pgsql-interfaces@arkaria.postgresql.org; Mon, 14 Apr 2014 14:01:19 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WZhRm-0007vB-Mv for pgsql-interfaces@postgresql.org; Mon, 14 Apr 2014 14:01:18 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WZhRj-0001c7-U3 for pgsql-interfaces@postgresql.org; Mon, 14 Apr 2014 14:01:18 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id s3EE10lZ012497; Mon, 14 Apr 2014 10:01:00 -0400 From: Tom Lane To: Sebastien FLAESCH cc: pgsql-interfaces@postgresql.org Subject: Re: Type identification with libpq / PQFmod() when using aggregates (SUM) In-reply-to: <534BB32F.4020503@4js.com> References: <534BB32F.4020503@4js.com> Comments: In-reply-to Sebastien FLAESCH message dated "Mon, 14 Apr 2014 12:06:39 +0200" Date: Mon, 14 Apr 2014 10:01:00 -0400 Message-ID: <12496.1397484060@sss.pgh.pa.us> X-Pg-Spam-Score: -2.9 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-interfaces Precedence: bulk Sender: pgsql-interfaces-owner@postgresql.org Sebastien FLAESCH writes: > But when using an aggregate function like SUM(), PQfmode() function returns > "no information available" (-1) ... > Is the type of the result of an aggregate function (or even more complex > expressions) not known by the server? That's correct. regards, tom lane -- Sent via pgsql-interfaces mailing list (pgsql-interfaces@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-interfaces