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

various date/time-related fixes #75625

Closed
wants to merge 5 commits into from

Commits on Aug 10, 2024

  1. adjust ScoreClause for PostgreSQL 12+

    "abstime" type was removed in that release, see notes:
    https://www.postgresql.org/docs/12/release-12.html
    
    Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
    rockdrilla committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    06b7ec8 View commit details
    Browse the repository at this point in the history
  2. treewide: adjust datetime to unix epoch conversion

    Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
    rockdrilla committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    c93e19b View commit details
    Browse the repository at this point in the history
  3. introduce BoundedPositiveBigIntegerField

    this is merely a mixin of BoundedPositiveIntegerField and
    BoundedBigIntegerField.
    
    Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
    rockdrilla committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    1bf4dfc View commit details
    Browse the repository at this point in the history
  4. use bigint for "score" in "groupedmessage"

    this field/column easily triggers integer overflow.
    
    Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
    rockdrilla committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    f2babf8 View commit details
    Browse the repository at this point in the history
  5. use bigint for "times_seen" in "groupedmessage"

    this field/column may trigger integer overflow.
    NB: "times_seen" is indexed field, so issue REINDEX TABLE after changing column type.
    
    Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
    rockdrilla committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    f9f7c75 View commit details
    Browse the repository at this point in the history