From: Tom Lane <tgl@sss.pgh.pa.us>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: Edoardo Panfili <edoardo.panfili@iisgubbio.edu.it>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: The same prepared query yield "-1" the first six times and then "-1.0"
Date: Mon, 21 Aug 2023 12:45:48 -0400
Message-ID: <2865013.1692636348@sss.pgh.pa.us> (raw)
In-Reply-To: <CAKFQuwZzVWzxpcbeJsS2ZSBCi1j310B+N=5v-9roObQaq2dVEQ@mail.gmail.com>
References: <5C40B9CC-40E4-4AC5-95A1-E5A521C282EF@gmail.com>
<CAKFQuwZzVWzxpcbeJsS2ZSBCi1j310B+N=5v-9roObQaq2dVEQ@mail.gmail.com>
"David G. Johnston" <david.g.johnston@gmail.com> writes:
> Otherwise, I agree this seems like a bug, probably in the JDBC driver,
> though one pertains to style as opposed to semantics since both answers are
> technically correct.
I don't see any such behavior change in psql, so I agree that this is
probably something to ask about on the JDBC list.
My first thought was that the output change occurs when the query
transitions from custom to generic plan. However, since there are
no parameters involved the backend would go for a generic plan
immediately. Having said that, I seem to recall that the JDBC driver
has its own notion of custom vs generic execution, so maybe the
issue is around there somewhere.
regards, tom lane
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, david.g.johnston@gmail.com, edoardo.panfili@iisgubbio.edu.it
Subject: Re: The same prepared query yield "-1" the first six times and then "-1.0"
In-Reply-To: <2865013.1692636348@sss.pgh.pa.us>
References: <5C40B9CC-40E4-4AC5-95A1-E5A521C282EF@gmail.com> <CAKFQuwZzVWzxpcbeJsS2ZSBCi1j310B+N=5v-9roObQaq2dVEQ@mail.gmail.com> <2865013.1692636348@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox