Subject | Re: [firebird-support] PK vs Index on table scan |
---|---|
Author | Martijn Tonies |
Post date | 2005-06-15T12:02:52Z |
> >> > Perhaps the indices for the PKs are inactive. Can you tryre-activating
> >> > it?recreated
> >>
> >> I didn't know a PK could be made inactive. I dropped the PK and
> > it=
> >> and now things are normal.
> >
> > Well, normally, this shouldn't be possible.
> >
> > But it might have happened when restoring the database with indices
> > disabled. Is that something that could be possible in your case?
> >
> >> Strange that all the PK's are doing the same thing - I wonder how this
> > could
> >> happen?
>
> Martijn
> I checked, and all the primary indexes are disabled ie. RDB$INDEX_INACTIVE
> 1I must admit I don't know... Perhaps something went terribly wrong
> when I try and reactivate them with alter index rdb$primary28 active I get
> an error "index unexpectedly deleted"
> how do I fix this?
while restoring?
Dropping the constraints and re-creating them should do the job though.
With regards,
Martijn Tonies
Database Workbench - tool for InterBase, Firebird, MySQL, Oracle & MS SQL
Server
Upscene Productions
http://www.upscene.com