Re: Type identification with libpq / PQFmod() when using aggregates (SUM) - Mailing list pgsql-interfaces

From Sebastien FLAESCH
Subject Re: Type identification with libpq / PQFmod() when using aggregates (SUM)
Date
Msg-id 534BEF93.40307@4js.com
Whole thread Raw
In response to Re: Type identification with libpq / PQFmod() when using aggregates (SUM)  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-interfaces
On 04/14/2014 04:01 PM, Tom Lane wrote:
> Sebastien FLAESCH <sf@4js.com> 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.

Thank you Tom, but then, IMHO, it should be considered as a request...

Some client applications (which do a bit more than just displaying the result
string of query columns) need that information, for ex to do data conversions,
automatic formatting, etc.

Seb



pgsql-interfaces by date:

Previous
From: Tom Lane
Date:
Subject: Re: Type identification with libpq / PQFmod() when using aggregates (SUM)
Next
From: למען העתיד
Date:
Subject: הורה טוב יותר