Re: Re: [COMMITTERS] pgsql: Use MINVALUE/MAXVALUE instead of UNBOUNDED for range partition b
Dean Rasheed <dean.a.rasheed@gmail.com>
From: Dean Rasheed <dean.a.rasheed@gmail.com>
To: Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, Robert Haas <robertmhaas@gmail.com>, Alvaro Herrera <alvherre@alvh.no-ip.org>, "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2017-09-14T07:53:49Z
Lists: pgsql-hackers
On 13 September 2017 at 10:05, Amit Langote <Langote_Amit_f8@lab.ntt.co.jp> wrote: > Coincidentally, I just wrote the patch for canonicalizing stored values, > instead of erroring out. Please see attached if that's what you were > thinking too. > Looks reasonable to me, if we decide to go this way. One minor review comment -- it isn't really necessary to have the separate new boolean local variables as well as the datum kind variables. Just tracking the datum kind is sufficient and slightly simpler. That would also address a slight worry I have that your coding might result in a compiler warning about the kind variables being used uninitialised with some less intelligent compilers, not smart enough to work out that it can't actually happen. Regards, Dean
Commits
-
After a MINVALUE/MAXVALUE bound, allow only more of the same.
- e8b65986ba0d 10.0 landed
- 9361f6f54e3f 11.0 landed
-
Use MINVALUE/MAXVALUE instead of UNBOUNDED for range partition bounds.
- d363d42bb9a4 10.0 cited