pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #8880: no indication of value when exceeded maximum length
2+ messages / 2 participants
[nested] [flat]
* BUG #8880: no indication of value when exceeded maximum length
@ 2014-01-19 16:11 mlipchuk@redhat.com
2014-01-21 21:46 ` Re: BUG #8880: no indication of value when exceeded maximum length Bruce Momjian <bruce@momjian.us>
0 siblings, 1 reply; 2+ messages in thread
From: mlipchuk@redhat.com @ 2014-01-19 16:11 UTC (permalink / raw)
To: pgsql-bugs
The following bug has been logged on the website:
Bug reference: 8880
Logged by: Maor Lipchuk
Email address: mlipchuk@redhat.com
PostgreSQL version: 9.2.3
Operating system: Fedora 18
Description:
When trying to insert a varchar value in a limited column which exceed the
column limitation, we get an error of "value too long for type
character(%d)).
e.g varchar(5) --> value of 6 character "123456"
There is no indication which value exceeded the limitation and for big
tables it is almost impossible to indicate the specific exceeded value.
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: BUG #8880: no indication of value when exceeded maximum length
2014-01-19 16:11 BUG #8880: no indication of value when exceeded maximum length mlipchuk@redhat.com
@ 2014-01-21 21:46 ` Bruce Momjian <bruce@momjian.us>
0 siblings, 0 replies; 2+ messages in thread
From: Bruce Momjian @ 2014-01-21 21:46 UTC (permalink / raw)
To: mlipchuk@redhat.com; +Cc: pgsql-bugs
On Sun, Jan 19, 2014 at 04:11:39PM +0000, mlipchuk@redhat.com wrote:
> The following bug has been logged on the website:
>
> Bug reference: 8880
> Logged by: Maor Lipchuk
> Email address: mlipchuk@redhat.com
> PostgreSQL version: 9.2.3
> Operating system: Fedora 18
> Description:
>
> When trying to insert a varchar value in a limited column which exceed the
> column limitation, we get an error of "value too long for type
> character(%d)).
> e.g varchar(5) --> value of 6 character "123456"
>
> There is no indication which value exceeded the limitation and for big
> tables it is almost impossible to indicate the specific exceeded value.
Yes, that is odd. If it was a constraint we would have printed out the
name of the constraint being violated, but type checking doesn't have
names and doesn't report which field is a problem. I am not sure what
to recommend here. I tried psql's \set VERBOSITY verbose, but that
didn't help:
test=> \set VERBOSITY verbose
test=> INSERT INTO test VALUES ('123456', '123456');
ERROR: 22001: value too long for type character varying(5)
LOCATION: varchar, varchar.c:623
--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ Everyone has their own god. +
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2014-01-21 21:46 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2014-01-19 16:11 BUG #8880: no indication of value when exceeded maximum length mlipchuk@redhat.com
2014-01-21 21:46 ` Bruce Momjian <bruce@momjian.us>
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