From: Tom Lane <tgl@sss.pgh.pa.us>
To: Chuck Martin <clmartin@theombudsman.com>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: Change from 9.6 to 11?
Date: Thu, 20 Dec 2018 16:02:28 -0500
Message-ID: <19985.1545339748@sss.pgh.pa.us> (raw)
In-Reply-To: <CAFw6=U1jYhUD+E7u47Jxhs6Ta9-EkhFxcJnZPHvbj1OW-X9ynw@mail.gmail.com>
References: <CAFw6=U1jYhUD+E7u47Jxhs6Ta9-EkhFxcJnZPHvbj1OW-X9ynw@mail.gmail.com>
Chuck Martin <clmartin@theombudsman.com> writes:
> I hope someone here can see something that eludes me. I've recently moved a
> database from PostgreSQL 9.6 to 11, and there are a few oddities. The
> following select statement returns zero rows when it should return one.
> This is one of a small number of records that exist, but are not returned
> by the query. When I include the main table, event, and any one of the
> associated tables, the record is returned, but no record is returned with
> the entire statement. All the primary keys (_pkey) and foreign keys (_fkey)
> are integers. The field I suspect as the possible culprit, event.InsBy, is
> a character column I'm converting to do a lookup on a primary key
> (integer): event.InsBy::int = usr.Usr_pkey. Maybe PG 11 doesn't recognize
> the same syntax for cast as PG 9.6? Or maybe I'm overlooking something else
> basic. Thanks for reading!
Maybe you've found a bug. Can you extract a self-contained case
exhibiting this behavior? Is this 11.0 or 11.1?
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, clmartin@theombudsman.com
Subject: Re: Change from 9.6 to 11?
In-Reply-To: <19985.1545339748@sss.pgh.pa.us>
References: <CAFw6=U1jYhUD+E7u47Jxhs6Ta9-EkhFxcJnZPHvbj1OW-X9ynw@mail.gmail.com> <19985.1545339748@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