timestamp9
timestamp nanosecond resolution
Repository
optiver/timestamp9
https://github.com/optiver/timestamp9
Source
timestamp9-timestamp9-1.4.0.tar.gz
timestamp9-timestamp9-1.4.0.tar.gz
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
timestamp9 | 1.4.0 | TYPE | MIT | C |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 3900 | timestamp9 | No | Yes | No | Yes | No | No | - |
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | MIXED | 1.4.0 | 1817161514 | timestamp9 | - |
| RPM | PGDG | 1.4.0 | 1817161514 | timestamp9_$v | - |
| DEB | PIGSTY | 1.4.0 | 1817161514 | postgresql-$v-timestamp9 | - |
Build
You can build the DEB packages for timestamp9 using pig build:
Install
You can install timestamp9 directly. First, make sure the PGDG and PIGSTY repositories are added and enabled:
Install the extension using pig or apt/yum/dnf:
Install
pig
dnf
apt
Create Extension:
Usage
timestamp9: nanosecond precision timestamp type for PostgreSQL
The timestamp9 extension provides a nanosecond-precision timestamp type stored as a 64-bit integer (nanoseconds since UNIX epoch).
Data Type
The timestamp9 type supports timestamps from 1970-01-01 to 2262-04-12 with nanosecond precision.
Input Formats
Type Conversions
- Cast to/from
timestampandtimestamptz - Cast to/from
date
Nanosecond precision is preserved throughout conversions.
Operators
Functions
Index Support
Btree and hash indexes are supported.
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)