Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix wrong OID format type in repack_trigger
table OID should be unsigned four-byte integer, therefore formatting with %d is wrong. %u should be used as in other places. It's surprising that we haven't received such error messages before. But such a query is definitely wrong "INSERT INTO repack.log_-907750756(pk, row) "
- Loading branch information
ca7a175
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI @Melkij - I just hit this error in 1.5.0 😅 Do you know of a way I could work around it?
ca7a175
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, that's expected. This bug exists only in 1.5.0. Compile new one from the master branch or use an older version. Well, you can probably also redefine the trigger in plpgsql instead of C. (like older versions)
ca7a175
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks - I'll compile from master and use that.
ca7a175
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ca7a175
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that the bug is important enough to make an unplanned release six months ago, because the bug makes the processed table read-only (depending on actual oid). But I was not invited to any discussions about release plans for 1.5.0 or later (for example, where it was decided that it would be 1.5.0 and not 1.4.next). So I don't know the plans for the next release.