├── .github └── workflows │ └── regression.yml ├── .gitignore ├── .vimrc ├── Makefile ├── NEWS.md ├── README.md ├── debian ├── NEWS ├── changelog ├── control ├── control.in ├── copyright ├── gitlab-ci.yml ├── pgversions ├── rules ├── source │ └── format ├── tests │ ├── control │ └── installcheck ├── upstream │ └── metadata └── watch ├── defined_units.h ├── definitions.units ├── definitions.units.patch ├── definitions.units.patched ├── definitions.unresolved ├── do ├── dump-units.sh ├── elements.units ├── expected ├── aggregate.out ├── binary.out ├── compare.out ├── convert.out ├── crosstab.out ├── custom.out ├── derived.out ├── extension.out ├── functions.out ├── iec.out ├── language_functions.out ├── prefix.out ├── round.out ├── round_1.out ├── tables.out ├── temperature.out ├── time.out ├── unicode.out ├── unit.out ├── units.out └── upgrade.out ├── float8out_unit.h ├── load-units.pl ├── powers.c ├── powers.h ├── sql ├── aggregate.sql ├── binary.sql ├── compare.sql ├── convert.sql ├── crosstab.sql ├── custom.sql ├── derived.sql ├── extension.sql ├── functions.sql ├── iec.sql ├── language_functions.sql ├── prefix.sql ├── round.sql ├── tables.sql ├── temperature.sql ├── time.sql ├── unicode.sql ├── unit.sql ├── units.sql └── upgrade.sql ├── unit--1--2.sql ├── unit--1.sql ├── unit--2--3.sql.in ├── unit--2.sql ├── unit--3--4.sql.in ├── unit--3.sql.in ├── unit--4--5.sql.in ├── unit--4.sql.in ├── unit--5--6.sql.in ├── unit--5.sql.in ├── unit--6--7.sql.in ├── unit--6.sql.in ├── unit--7.sql.in ├── unit.c ├── unit.control ├── unit.h ├── unit_prefixes.data ├── unit_units.data ├── unitparse.l ├── unitparse.tab.c ├── unitparse.tab.h └── unitparse.y /.github/workflows/regression.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/.github/workflows/regression.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/.gitignore -------------------------------------------------------------------------------- /.vimrc: -------------------------------------------------------------------------------- 1 | set ts=4 sw=4 2 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/Makefile -------------------------------------------------------------------------------- /NEWS.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/NEWS.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/README.md -------------------------------------------------------------------------------- /debian/NEWS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/debian/NEWS -------------------------------------------------------------------------------- /debian/changelog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/debian/changelog -------------------------------------------------------------------------------- /debian/control: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/debian/control -------------------------------------------------------------------------------- /debian/control.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/debian/control.in -------------------------------------------------------------------------------- /debian/copyright: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/debian/copyright -------------------------------------------------------------------------------- /debian/gitlab-ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/debian/gitlab-ci.yml -------------------------------------------------------------------------------- /debian/pgversions: -------------------------------------------------------------------------------- 1 | 9.5+ 2 | -------------------------------------------------------------------------------- /debian/rules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/debian/rules -------------------------------------------------------------------------------- /debian/source/format: -------------------------------------------------------------------------------- 1 | 3.0 (quilt) 2 | -------------------------------------------------------------------------------- /debian/tests/control: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/debian/tests/control -------------------------------------------------------------------------------- /debian/tests/installcheck: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | pg_buildext -i '--locale=C.UTF-8' installcheck 3 | -------------------------------------------------------------------------------- /debian/upstream/metadata: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/debian/upstream/metadata -------------------------------------------------------------------------------- /debian/watch: -------------------------------------------------------------------------------- 1 | version=4 2 | https://github.com/df7cb/postgresql-unit/tags .*/([0-9.]*).tar.gz 3 | -------------------------------------------------------------------------------- /defined_units.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/defined_units.h -------------------------------------------------------------------------------- /definitions.units: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/definitions.units -------------------------------------------------------------------------------- /definitions.units.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/definitions.units.patch -------------------------------------------------------------------------------- /definitions.units.patched: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/definitions.units.patched -------------------------------------------------------------------------------- /definitions.unresolved: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/definitions.unresolved -------------------------------------------------------------------------------- /do: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/do -------------------------------------------------------------------------------- /dump-units.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/dump-units.sh -------------------------------------------------------------------------------- /elements.units: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/elements.units -------------------------------------------------------------------------------- /expected/aggregate.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/expected/aggregate.out -------------------------------------------------------------------------------- /expected/binary.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/expected/binary.out -------------------------------------------------------------------------------- /expected/compare.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/expected/compare.out -------------------------------------------------------------------------------- /expected/convert.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/expected/convert.out -------------------------------------------------------------------------------- /expected/crosstab.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/expected/crosstab.out -------------------------------------------------------------------------------- /expected/custom.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/expected/custom.out -------------------------------------------------------------------------------- /expected/derived.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/expected/derived.out -------------------------------------------------------------------------------- /expected/extension.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/expected/extension.out -------------------------------------------------------------------------------- /expected/functions.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/expected/functions.out -------------------------------------------------------------------------------- /expected/iec.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/expected/iec.out -------------------------------------------------------------------------------- /expected/language_functions.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/expected/language_functions.out -------------------------------------------------------------------------------- /expected/prefix.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/expected/prefix.out -------------------------------------------------------------------------------- /expected/round.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/expected/round.out -------------------------------------------------------------------------------- /expected/round_1.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/expected/round_1.out -------------------------------------------------------------------------------- /expected/tables.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/expected/tables.out -------------------------------------------------------------------------------- /expected/temperature.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/expected/temperature.out -------------------------------------------------------------------------------- /expected/time.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/expected/time.out -------------------------------------------------------------------------------- /expected/unicode.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/expected/unicode.out -------------------------------------------------------------------------------- /expected/unit.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/expected/unit.out -------------------------------------------------------------------------------- /expected/units.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/expected/units.out -------------------------------------------------------------------------------- /expected/upgrade.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/expected/upgrade.out -------------------------------------------------------------------------------- /float8out_unit.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/float8out_unit.h -------------------------------------------------------------------------------- /load-units.pl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/load-units.pl -------------------------------------------------------------------------------- /powers.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/powers.c -------------------------------------------------------------------------------- /powers.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/powers.h -------------------------------------------------------------------------------- /sql/aggregate.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/sql/aggregate.sql -------------------------------------------------------------------------------- /sql/binary.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/sql/binary.sql -------------------------------------------------------------------------------- /sql/compare.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/sql/compare.sql -------------------------------------------------------------------------------- /sql/convert.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/sql/convert.sql -------------------------------------------------------------------------------- /sql/crosstab.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/sql/crosstab.sql -------------------------------------------------------------------------------- /sql/custom.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/sql/custom.sql -------------------------------------------------------------------------------- /sql/derived.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/sql/derived.sql -------------------------------------------------------------------------------- /sql/extension.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/sql/extension.sql -------------------------------------------------------------------------------- /sql/functions.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/sql/functions.sql -------------------------------------------------------------------------------- /sql/iec.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/sql/iec.sql -------------------------------------------------------------------------------- /sql/language_functions.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/sql/language_functions.sql -------------------------------------------------------------------------------- /sql/prefix.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/sql/prefix.sql -------------------------------------------------------------------------------- /sql/round.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/sql/round.sql -------------------------------------------------------------------------------- /sql/tables.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/sql/tables.sql -------------------------------------------------------------------------------- /sql/temperature.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/sql/temperature.sql -------------------------------------------------------------------------------- /sql/time.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/sql/time.sql -------------------------------------------------------------------------------- /sql/unicode.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/sql/unicode.sql -------------------------------------------------------------------------------- /sql/unit.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/sql/unit.sql -------------------------------------------------------------------------------- /sql/units.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/sql/units.sql -------------------------------------------------------------------------------- /sql/upgrade.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/sql/upgrade.sql -------------------------------------------------------------------------------- /unit--1--2.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/unit--1--2.sql -------------------------------------------------------------------------------- /unit--1.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/unit--1.sql -------------------------------------------------------------------------------- /unit--2--3.sql.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/unit--2--3.sql.in -------------------------------------------------------------------------------- /unit--2.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/unit--2.sql -------------------------------------------------------------------------------- /unit--3--4.sql.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/unit--3--4.sql.in -------------------------------------------------------------------------------- /unit--3.sql.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/unit--3.sql.in -------------------------------------------------------------------------------- /unit--4--5.sql.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/unit--4--5.sql.in -------------------------------------------------------------------------------- /unit--4.sql.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/unit--4.sql.in -------------------------------------------------------------------------------- /unit--5--6.sql.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/unit--5--6.sql.in -------------------------------------------------------------------------------- /unit--5.sql.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/unit--5.sql.in -------------------------------------------------------------------------------- /unit--6--7.sql.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/unit--6--7.sql.in -------------------------------------------------------------------------------- /unit--6.sql.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/unit--6.sql.in -------------------------------------------------------------------------------- /unit--7.sql.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/unit--7.sql.in -------------------------------------------------------------------------------- /unit.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/unit.c -------------------------------------------------------------------------------- /unit.control: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/unit.control -------------------------------------------------------------------------------- /unit.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/unit.h -------------------------------------------------------------------------------- /unit_prefixes.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/unit_prefixes.data -------------------------------------------------------------------------------- /unit_units.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/unit_units.data -------------------------------------------------------------------------------- /unitparse.l: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/unitparse.l -------------------------------------------------------------------------------- /unitparse.tab.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/unitparse.tab.c -------------------------------------------------------------------------------- /unitparse.tab.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/unitparse.tab.h -------------------------------------------------------------------------------- /unitparse.y: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/df7cb/postgresql-unit/HEAD/unitparse.y --------------------------------------------------------------------------------