Skip to content

ivanyu/pg-uuids-v1-compare

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

pg-uuids-v1-compare

PostgreSQL function to compare version 1 (time-based) UUIDs based on timestamps, and tests for it.

Example:

SELECT uuids_v1_compare(uuid('762ca430-eed5-11e5-8ca8-4bebdf3c407a'),
                        uuid('762cf250-eed5-11e5-8ca8-4bebdf3c407a'))

uuids_v1_compare
smallint
----------------
-1

A blog post about it.

About

PostgreSQL function to compare version 1 (time-based) UUIDs by timestamps and counter, and tests for it

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published