From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: cherio@gmail.com
Subject: BUG #16658: HSTORE typecast exception is XX000 - inconsistent with the other cast exceptions (22xxx)
Date: Tue, 06 Oct 2020 23:45:51 +0000
Message-ID: <16658-662870114bd88f43@postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 16658
Logged by: Yuri Cherio
Email address: cherio@gmail.com
PostgreSQL version: 13.0
Operating system: Ubuntu Linux 20.04
Description:
This is probably not a bug but more of an inconsistent behavior.
All typecast exceptions fall into 22xxx category e.g. 'abc'::DATE,
'abc'::INTEGER, '123'::TIMESTAMPTZ. HSTORE type casting seems to be breaking
out from the pack throwing an XX000 exception, e.g. 'one'::HSTORE.
In my mind even the most generic data exception 22000 exception code should
probably be more appropriate than an internal error.
This is likely applicable to the earlier versions as well.
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-bugs@postgresql.org
Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, cherio@gmail.com
Subject: Re: BUG #16658: HSTORE typecast exception is XX000 - inconsistent with the other cast exceptions (22xxx)
In-Reply-To: <16658-662870114bd88f43@postgresql.org>
* 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