Skip to content

mkindahl/pg_xtypes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Convenience types for PostgreSQL

This repository contains a bunch of convenience types for PostgreSQL.

The bytes type

Byte size type, printing in the same way as pg_size_pretty, but also supporting arithmetics. It accepts a number followed by any of the following suffixes, which will scale it accordingly.

Name Symbol Value
kibibyte KiB 210
mibibyte MiB 220
gibibyte GiB 230
tebibyte TiB 240
pebibyte PiB 250
exbibyte EiB 260

The size is stored internally as a 64-bit unsigned integer, meaning that the maximum size that can be stored is 16 EiB (exbibyte).

About

Convenience types for PostgreSQL

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors