agora inbox for pgsql-interfaces@postgresql.org  
help / color / mirror / Atom feed
From: Sebastien FLAESCH <sf@4js.com>
To: pgsql-interfaces@postgresql.org
Subject: Re: Type identification with libpq / PQFmod() when using aggregates (SUM)
Date: Mon, 14 Apr 2014 16:24:19 +0200
Message-ID: <534BEF93.40307@4js.com> (raw)
In-Reply-To: <12496.1397484060@sss.pgh.pa.us>
References: <534BB32F.4020503@4js.com>
	<12496.1397484060@sss.pgh.pa.us>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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


-- 
Sent via pgsql-interfaces mailing list (pgsql-interfaces@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-interfaces



view thread (3+ messages)

Message-ID: <534BEF93.40307@4js.com>
Permalink:  ../534BEF93.40307@4js.com/
Also on:    postgresql.org/message-id/534BEF93.40307@4js.com

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: sf@4js.com
  Subject: Re: Type identification with libpq / PQFmod() when using aggregates (SUM)
  In-Reply-To: <534BEF93.40307@4js.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox