From: Tom Lane <tgl@sss.pgh.pa.us>
To: maxim.boguk@gmail.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #14205: Weird cast long int values to numeric leading to seq scan
Date: Tue, 21 Jun 2016 10:49:40 -0400
Message-ID: <10149.1466520580@sss.pgh.pa.us> (raw)
In-Reply-To: <20160621144200.5792.49545@wrigleys.postgresql.org>
References: <20160621144200.5792.49545@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
maxim.boguk@gmail.com writes:
> If an input value of the field=value goes over bigint range, the database
> switches to the field::numeric=value::numeric plan, which leads to the seq
> scan as result.
This is not a bug. If you want to force inputs to be bigint, try using a
cast.
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, maxim.boguk@gmail.com
Subject: Re: BUG #14205: Weird cast long int values to numeric leading to seq scan
In-Reply-To: <10149.1466520580@sss.pgh.pa.us>
References: <20160621144200.5792.49545@wrigleys.postgresql.org> <10149.1466520580@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