Re: [Firebird-devel] ALTER COLUMN and index rebuild

2018-03-22 Thread Mark Rotteveel
On 16-3-2018 15:06, Vlad Khorsun via Firebird-devel wrote:   Looking at bug CORE-5774 i found very odd behavior of engine: it seems it rebuilds indices in many unneeded cases, when almost any property of the indexed field is changed.   I understand that index should be rebuild in this case

Re: [Firebird-devel] ALTER COLUMN and index rebuild

2018-03-19 Thread Vlad Khorsun via Firebird-devel
And, probably, we should add: (3) - NOT NULL is set and default value was set before Really, why? I don't see that as a change that would affect the existing index values. The question was about existing NULL values. After i tried it i see that NOT NULL will not be set in this case: SQL>

Re: [Firebird-devel] ALTER COLUMN and index rebuild

2018-03-19 Thread Leyne, Sean
> >> And, probably, we should add: > >> (3) - NOT NULL is set and default value was set before > > > > Really, why? > > > > I don't see that as a change that would affect the existing index values. > >The question was about existing NULL values. After i tried it i see that > NOT > NULL will

Re: [Firebird-devel] ALTER COLUMN and index rebuild

2018-03-19 Thread Vlad Khorsun via Firebird-devel
19.03.2018 12:21, Leyne, Sean wrote: And, probably, we should add: (3) - NOT NULL is set and default value was set before Really, why? I don't see that as a change that would affect the existing index values. The question was about existing NULL values. After i tried it i see that NOT N

Re: [Firebird-devel] ALTER COLUMN and index rebuild

2018-03-19 Thread Leyne, Sean
> And, probably, we should add: > (3) - NOT NULL is set and default value was set before Really, why? I don't see that as a change that would affect the existing index values. Sean -- Check out the vibrant tech comm

Re: [Firebird-devel] ALTER COLUMN and index rebuild

2018-03-19 Thread Vlad Khorsun via Firebird-devel
19.03.2018 11:55, Leyne, Sean wrote: Vlad, Looking at bug CORE-5774 i found very odd behavior of engine: it seems it rebuilds indices in many unneeded cases, when almost any property of the indexed field is changed. I understand that index should be rebuild in this cases only: (1) - fi

Re: [Firebird-devel] ALTER COLUMN and index rebuild

2018-03-19 Thread Leyne, Sean
Vlad, >Looking at bug CORE-5774 i found very odd behavior of engine: it seems it > rebuilds indices in many unneeded cases, when almost any property of the > indexed field is changed. > >I understand that index should be rebuild in this cases only: > (1) - field data type is changed *and*

[Firebird-devel] ALTER COLUMN and index rebuild

2018-03-16 Thread Vlad Khorsun via Firebird-devel
Looking at bug CORE-5774 i found very odd behavior of engine: it seems it rebuilds indices in many unneeded cases, when almost any property of the indexed field is changed. I understand that index should be rebuild in this cases only: - field data type is changed *and* its "index" type cha