Skip to content

Comparing two timestamps with either <=| or |=> #60

Closed
@ngigiwaithaka

Description

@ngigiwaithaka

Given an a rum index ..

> CREATE INDEX tsts_idx ON tsts USING rum (t rum_tsvector_addon_ops, time_created_as_from_server)
>     WITH (attach = 'time_created_as_from_server', to = 't');

Where time_created_as_from_server is a BIGINT

I would like to use this index to compare a given timestamp to time_created_as_from_server.

When I do ...

timestamp |=> time_created_as_from_server
or
timestamp or timestamp <=| time_created_as_from_server

While it returns the positive values okay, where it should return -ve values, it returns Infinity!

Is there a way to use these indexes to tell when one timestamp is either > or < than the other?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions