Re: Type identification with libpq / PQFmod() when using aggregates (SUM)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Sebastien FLAESCH <sf(at)4js(dot)com>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: Type identification with libpq / PQFmod() when using aggregates (SUM)
Date: 2014-04-14 14:01:00
Message-ID: 12496.1397484060@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

Sebastien FLAESCH <sf(at)4js(dot)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.

regards, tom lane

In response to

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Sebastien FLAESCH 2014-04-14 14:24:19 Re: Type identification with libpq / PQFmod() when using aggregates (SUM)
Previous Message Sebastien FLAESCH 2014-04-14 10:06:39 Type identification with libpq / PQFmod() when using aggregates (SUM)