Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manual index entries not persisted through a server restart #5832

Closed
fpertl opened this issue Mar 15, 2016 · 4 comments
Closed

Manual index entries not persisted through a server restart #5832

fpertl opened this issue Mar 15, 2016 · 4 comments
Assignees
Labels
Milestone

Comments

@fpertl
Copy link

fpertl commented Mar 15, 2016

Create a manually created index:
CREATE INDEX md5 UNIQUE_HASH_INDEX;
then manually population the index via inserts with keys and rids.
Then querying the index
e.g. SELECT FROM INDEX:md5 WHERE key = '06700B2BD5AA941B9755B49C129BD66E'
returns the stored rid as expected, but if the server is restarted, nothing is returned.
However
SELECT COUNT(*) FROM INDEX:md5
will return the correct count for the previous inserts...

The type of index does not seem to matter.

@laa
Copy link
Member

laa commented Mar 15, 2016

Hi, what version do you use ?

@fpertl
Copy link
Author

fpertl commented Mar 15, 2016

I'm using 2.1.10 community.

@laa laa self-assigned this Mar 15, 2016
@laa laa added this to the 2.1.x (next hotfix) milestone Mar 15, 2016
@taburet
Copy link
Contributor

taburet commented Mar 16, 2016

@fpertl I have investigated the issue and found that automatic key type detection behaviour is unreliable, we have decided to deprecate untyped indexes. As a workaround pease specify an index key type while creating the index, like this:

CREATE INDEX md5 UNIQUE_HASH_INDEX STRING;

@laa laa removed the in progress label Mar 16, 2016
@laa laa closed this as completed Mar 16, 2016
@fpertl
Copy link
Author

fpertl commented Mar 16, 2016

Thanks for resolving this :)

laa added a commit that referenced this issue Mar 21, 2016
@robfrank robfrank modified the milestones: 2.1.x (next hotfix), 2.1.14 Mar 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

4 participants