Thread
Commits
-
Add const qualifiers to internal range type APIs
- 73025140885c 13.0 landed
-
Add const qualifiers to internal range type APIs
Peter Eisentraut <peter.eisentraut@2ndquadrant.com> — 2019-10-28T09:01:42Z
This patch adds const qualifiers to internal range type APIs. It doesn't require any new casts or remove any old ones. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
-
Re: Add const qualifiers to internal range type APIs
Robert Haas <robertmhaas@gmail.com> — 2019-10-28T13:05:40Z
On Mon, Oct 28, 2019 at 5:01 AM Peter Eisentraut <peter.eisentraut@2ndquadrant.com> wrote: > This patch adds const qualifiers to internal range type APIs. It > doesn't require any new casts or remove any old ones. Just out of curiosity, what is the motivation for this? -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company
-
Re: Add const qualifiers to internal range type APIs
Peter Eisentraut <peter.eisentraut@2ndquadrant.com> — 2019-10-29T15:48:24Z
On 2019-10-28 14:05, Robert Haas wrote: > On Mon, Oct 28, 2019 at 5:01 AM Peter Eisentraut > <peter.eisentraut@2ndquadrant.com> wrote: >> This patch adds const qualifiers to internal range type APIs. It >> doesn't require any new casts or remove any old ones. > > Just out of curiosity, what is the motivation for this? I don't remember. :-) I had this code lying around from earlier "adventures in const", probably related to unconstify() and that work, and it seemed sensible and self-contained enough to finish up and submit. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
-
Re: Add const qualifiers to internal range type APIs
Andres Freund <andres@anarazel.de> — 2019-10-29T20:11:00Z
On 2019-10-29 16:48:24 +0100, Peter Eisentraut wrote: > On 2019-10-28 14:05, Robert Haas wrote: > > Just out of curiosity, what is the motivation for this? > > I don't remember. :-) > > I had this code lying around from earlier "adventures in const", probably > related to unconstify() and that work, and it seemed sensible and > self-contained enough to finish up and submit. +1
-
Re: Add const qualifiers to internal range type APIs
Peter Eisentraut <peter.eisentraut@2ndquadrant.com> — 2019-10-31T06:49:54Z
On 2019-10-29 21:11, Andres Freund wrote: > On 2019-10-29 16:48:24 +0100, Peter Eisentraut wrote: >> On 2019-10-28 14:05, Robert Haas wrote: >>> Just out of curiosity, what is the motivation for this? >> >> I don't remember. :-) >> >> I had this code lying around from earlier "adventures in const", probably >> related to unconstify() and that work, and it seemed sensible and >> self-contained enough to finish up and submit. > > +1 committed -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services