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

Wrong detection of Duplicated indexes #76

Closed
SButterfly opened this issue Apr 14, 2020 · 4 comments · Fixed by #81
Closed

Wrong detection of Duplicated indexes #76

SButterfly opened this issue Apr 14, 2020 · 4 comments · Fixed by #81
Assignees
Labels
enhancement New feature or request

Comments

@SButterfly
Copy link
Contributor

create table t
(
    id   bigserial primary key,
    text text not null
);
create index ix_text on t (text);
create index ix_text_collate on t (text COLLATE "C.UTF-8");
@mfvanek
Copy link
Owner

mfvanek commented Apr 14, 2020

@SButterfly
I don't think that it's a bug. It's a strange to use collation while creating index. It looks like in this case using of text_pattern_ops would be more preferable.
Could you please provide more information about your use case?

@mfvanek mfvanek added invalid This doesn't seem right wontfix This will not be worked on labels Apr 14, 2020
@mfvanek
Copy link
Owner

mfvanek commented Apr 14, 2020

@mfvanek mfvanek removed the invalid This doesn't seem right label Apr 14, 2020
@SButterfly
Copy link
Contributor Author

Could you please provide more information about your use case?

We use index_with_collate for such queries:
select * from table whete (text collate "C.UTF-8") = ?;
Also we use ilike search
select * from table whete (text collate "C.UTF-8") ilike '%pattern%';

@mfvanek mfvanek self-assigned this Apr 14, 2020
@mfvanek mfvanek added enhancement New feature or request and removed wontfix This will not be worked on labels Apr 14, 2020
@mfvanek
Copy link
Owner

mfvanek commented Apr 25, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants