error fix for pg_trigger query & spelling typo#7
Open
dland wants to merge 2 commits intodataegret:masterfrom
Open
error fix for pg_trigger query & spelling typo#7dland wants to merge 2 commits intodataegret:masterfrom
dland wants to merge 2 commits intodataegret:masterfrom
Conversation
This is required to fix an "operator is not unique: smallint & integer" error message.
Collaborator
|
Hi |
Author
|
What was I thinking when I wrote that? It wasn't 9.6... it concerns an earlier version, 9.2 or 9.3. |
Collaborator
|
Not reproduced in freshly installed 9.5, 9.4, 9.3, 9.2 and even unsupported 9.1 =) Maybe some extensions was installed or custom operators defined? Error "operator is not unique: smallint & integer" means what both operands types and operator is known. pg_operator system view has unique constraint on (oprname, oprleft, oprright, oprnamespace), so not unique operator is possible only with different namespaces and I think problem was in specific database schema. |
Author
|
Hmm, ok. I guess we can leave this here then. (Although the spelling typo is worth fixing :) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On 9.6 I was unable to run pgcompacttable without the casting tgtype to integer. You can't cast 16 to shortint because Pg doesn't know how to cast from smallint to boolean implicitly.
Also fixed a spelling typo that was bugging me :)