pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #14459: Error from query with too many binds has no message
2+ messages / 2 participants
[nested] [flat]
* BUG #14459: Error from query with too many binds has no message
@ 2016-12-10 11:55 sean@seantheprogrammer.com
2016-12-11 00:14 ` Re: BUG #14459: Error from query with too many binds has no message Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 2+ messages in thread
From: sean@seantheprogrammer.com @ 2016-12-10 11:55 UTC (permalink / raw)
To: pgsql-bugs
The following bug has been logged on the website:
Bug reference: 14459
Logged by: Sean Griffin
Email address: sean@seantheprogrammer.com
PostgreSQL version: 9.6.1
Operating system: macOS
Description:
If a query is performed with more than 34464 bind parameters, the query will
fail. This is fine, but attempting to get the error message with
`PQresultErrorField` and `PG_DIAG_MESSAGE_PRIMARY` will return `NULL`. The
documentation states that the `PG_DIAG_MESSAGE_PRIMARY` field is always
present.
--
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 #14459: Error from query with too many binds has no message
2016-12-10 11:55 BUG #14459: Error from query with too many binds has no message sean@seantheprogrammer.com
@ 2016-12-11 00:14 ` Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2016-12-11 00:14 UTC (permalink / raw)
To: sean@seantheprogrammer.com; +Cc: pgsql-bugs
sean@seantheprogrammer.com writes:
> If a query is performed with more than 34464 bind parameters, the query will
> fail. This is fine, but attempting to get the error message with
> `PQresultErrorField` and `PG_DIAG_MESSAGE_PRIMARY` will return `NULL`. The
> documentation states that the `PG_DIAG_MESSAGE_PRIMARY` field is always
> present.
Hm --- it is, or should be, always present in errors returned by the
backend. I suspect this failure is occurring on the client side; libpq
does not produce broken-down fields in its error reports at the moment.
The weird limit suggests that the underlying problem is out-of-memory
while marshaling the query.
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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2016-12-11 00:14 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-12-10 11:55 BUG #14459: Error from query with too many binds has no message sean@seantheprogrammer.com
2016-12-11 00:14 ` Tom Lane <tgl@sss.pgh.pa.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