Re: BUG #15668: Server crash in transformPartitionRangeBounds
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Cc: Amit Langote <amitlangote09@gmail.com>, exclusion@gmail.com, PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>, PostgreSQL-development <pgsql-hackers@postgresql.org>, Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Date: 2019-03-22T05:09:57Z
Lists: pgsql-bugs, pgsql-hackers
Attachments
- 0001-Fix-crash-in-partition-bounds.patch (text/x-diff) patch 0001
- 0002-Rework-error-messages-for-incorrect-column-reference.patch (text/x-diff) patch 0002
On Wed, Mar 20, 2019 at 06:17:27PM +0900, Michael Paquier wrote: > The thing is that in order to keep the tests for the crash, we finish > with the inintuitive RTE-related errors, so it is also inconsistent to > not group things.. As I have seen no feedback from others regarding the changes in error messages depending on the parsing context, so I have been looking at splitting the fix for the crash and changing the error messages, and attached is the result of the split (minus the commit messages). The first patch fixes the crash, and includes test cases to cover the crash as well as extra cases for list and range strategies with partition bounds. Some of the error messages are confusing, but that fixes the issue. This is not the most elegant thing without the second patch, but well that could be worse. The second patch adds better error context for the different error messages, and includes tests for default expressions, which we could discuss in a separate thread. So I am not proposing to commit that without more feedback. -- Michael
Commits
-
Fix crash when using partition bound expressions
- cdde886d36b5 12.0 landed
-
Allow generalized expression syntax for partition bounds
- 7c079d7417a8 12.0 cited