From: Michael Paquier <michael@paquier.xyz>
To: Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Cc: Amit Langote <amitlangote09@gmail.com>
Cc: exclusion@gmail.com, PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Cc: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Subject: Re: BUG #15668: Server crash in transformPartitionRangeBounds
Date: Wed, 20 Mar 2019 18:17:27 +0900
Message-ID: <20190320091727.GE26601@paquier.xyz> (raw)
In-Reply-To: <1937632d-0807-ce70-f608-d075b4866963@lab.ntt.co.jp>
References: <20190306064825.GH30982@paquier.xyz>
<6ed2c24c-2f73-fa1c-0ed1-ed3597f13d0d@lab.ntt.co.jp>
<20190306082730.GJ30982@paquier.xyz>
<ab51ec5a-b2d3-a25f-5695-7555ad63d344@lab.ntt.co.jp>
<20190311072114.GG1818@paquier.xyz>
<ea8b7d1c-cee1-a062-ee67-2870bf223e64@lab.ntt.co.jp>
<a3947672-4853-2b39-32f3-ec347b7c99dd@lab.ntt.co.jp>
<20190314042308.GG3493@paquier.xyz>
<20190320020731.GE3488@paquier.xyz>
<1937632d-0807-ce70-f608-d075b4866963@lab.ntt.co.jp>
On Wed, Mar 20, 2019 at 06:07:23PM +0900, Amit Langote wrote:
> because we can notice the aggregate before we look into its arguments.
> Maybe, we should move the error-checking switch to a point before checking
> the arguments? That looks slightly more drastic change to make though.
Yeah, I think that it would be more invasive because the parsing logic
looks at the column references first. This way of doing things is
also something which is logic in its own way as the most internal
portions of an expression get checked first, so I quite like that way
of doing things. And that's just consistent with the point of view of
the parsing check order.
> We may want to fix the crash first. It might be better to hear other
> opinions before doing something about the error messages.
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..
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: michael@paquier.xyz, Langote_Amit_f8@lab.ntt.co.jp, amitlangote09@gmail.com, pgsql-hackers@postgresql.org, peter.eisentraut@2ndquadrant.com
Subject: Re: BUG #15668: Server crash in transformPartitionRangeBounds
In-Reply-To: <20190320091727.GE26601@paquier.xyz>
References: <20190306064825.GH30982@paquier.xyz> <6ed2c24c-2f73-fa1c-0ed1-ed3597f13d0d@lab.ntt.co.jp> <20190306082730.GJ30982@paquier.xyz> <ab51ec5a-b2d3-a25f-5695-7555ad63d344@lab.ntt.co.jp> <20190311072114.GG1818@paquier.xyz> <ea8b7d1c-cee1-a062-ee67-2870bf223e64@lab.ntt.co.jp> <a3947672-4853-2b39-32f3-ec347b7c99dd@lab.ntt.co.jp> <20190314042308.GG3493@paquier.xyz> <20190320020731.GE3488@paquier.xyz> <1937632d-0807-ce70-f608-d075b4866963@lab.ntt.co.jp> <20190320091727.GE26601@paquier.xyz>
* 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