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

mark = as HASHES, MERGES #409

Closed
wants to merge 4 commits into from

Conversation

@Komzpa
Copy link
Member

commented Jun 3, 2019

Thanks RhodiumToad on IRC.
TODO: upgrades

mark = as HASHES, MERGES
Thanks RhodiumToad on IRC.
TODO: upgrades
@Komzpa

This comment has been minimized.

Copy link
Member Author

commented Jun 3, 2019

[RhodiumToad] for upgrading an existing install you might be better off updating the catalog to set oprcanhash/oprcanmerge
@Algunenano Algunenano referenced this pull request Jun 10, 2019
@Algunenano

This comment has been minimized.

Copy link
Member

commented Jun 11, 2019

Operator's hashes and merges can't be updated with ALTER OPERATOR:

# alter operator = ( geometry, geometry ) set (HASHES = true); 
ERROR:  operator attribute "hashes" cannot be changed

alter operator = ( geometry, geometry ) set (MERGES = true); 
ERROR:  operator attribute "merges" cannot be changed

But it can be done with something like:

update pg_operator set oprcanhash = true, oprcanmerge = true where oprname = '=' and oprcode = '@extschema@.geometry_eq'::regproc;

I haven't investigated what could be the impact of doing this on the fly, just that it is possible and things work after doing it.

@strk strk closed this in f9334cb Jun 22, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.