Re: Re: [patch] Include detailed information about a row failing a CHECK constraint into the error message
Robert Haas <robertmhaas@gmail.com>
From: Robert Haas <robertmhaas@gmail.com>
To: Jan Kundrát <jkt@flaska.net>
Cc: pgsql-hackers@postgresql.org
Date: 2011-11-10T12:04:52Z
Lists: pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Don't assume that a tuple's header size is unchanged during toasting.
- b07b2bdc570c 9.0.6 cited
On Thu, Nov 10, 2011 at 5:40 AM, Jan Kundrát <jkt@flaska.net> wrote: > That's an interesting thought. I suppose the same thing is an issue with > unique keys, but they tend to not be created over huge columns, so it > isn't really a problem, right? Pretty much. > Would you object to a patch which outputs just the first 8kB of each > column? Having at least some form of context is very useful in my case. Well, if we're going to try to emit some context here, I'd suggest that we try to output only the columns implicated in the CHECK constraint, rather than the whole tuple. I'm not sure whether emitting only a certain amount of output (either total, or for each column) can be made to work nicely, or whether the feature overall is something we want. It seems like a trade-off between possibly useful context and possibly annoying log clutter, and I guess I don't have a strong opinion on which way to go with it. Anyone else have an opinion? -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company