diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 2b1e5ca..d502972 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -192,34 +192,28 @@ jobs: "postgresql-server-dev-${PGVERSION}" # WHAT ALL=ON REQUIRES, which is what lets the builds below ask for every - # family. libh3 is the H3 family's library, and the vendored pgPointCloud - # that POINTCLOUD compiles needs the autotools with libxml2 and zlib - # installed above. The h3 and pointcloud PostgreSQL EXTENSIONS are a - # separate need: MobilityDB's control file requires them when their family - # is on, so CREATE EXTENSION pulls them in and they must exist in the - # cluster. apt.postgresql.org carries both for PostgreSQL 16 to 18. + # family. The vendored pgPointCloud that POINTCLOUD compiles needs the + # autotools with libxml2 and zlib installed above. The h3 and pointcloud + # PostgreSQL EXTENSIONS are a separate need: MobilityDB's control file + # requires them when their family is on, so CREATE EXTENSION pulls them in + # and they must exist in the cluster. apt.postgresql.org carries both for + # PostgreSQL 16 to 18. - name: Install what the optional families require run: | - sudo apt-get install -y libh3-dev \ + sudo apt-get install -y \ "postgresql-${PGVERSION}-pointcloud" \ "postgresql-${PGVERSION}-h3" - # The pgdg libh3-dev package layout differs between releases, so the - # header and the library are located on disk and pinned rather than left - # to CMake's find_path and find_library defaults. This is MobilityDB's own - # step, from its .github/workflows/pgversion.yml. - - name: Locate libh3 on disk and pin its paths + # libh3 is the H3 family's library. MobilityDB supports one H3 release, + # H3_REQUIRED_VERSION of its CMakeLists.txt, and its configure refuses any + # other, so the library is not a package: MobilityDB's own + # .github/scripts/install-h3.sh builds that release from its tag, as its + # .github/workflows/pgversion.yml does. + - name: Install the H3 release MobilityDB supports run: | - H3_INC=$(dpkg -L libh3-dev | grep -E 'h3api\.h$' | head -1) - H3_LIB=$(dpkg -L libh3-dev libh3-1 2>/dev/null | grep -E 'libh3\.so$' | head -1) - if [ -z "$H3_INC" ] || [ -z "$H3_LIB" ]; then - find /usr -name 'h3api.h' 2>/dev/null - find /usr -name 'libh3*' 2>/dev/null - echo "::error::could not locate libh3 headers/library" - exit 1 - fi - echo "H3_INCLUDE_DIR=$(dirname "$H3_INC")" >> "$GITHUB_ENV" - echo "H3_LIBRARY=$H3_LIB" >> "$GITHUB_ENV" + sudo mobilitydb/.github/scripts/install-h3.sh /usr/local + echo "H3_INCLUDE_DIR=/usr/local/include/h3" >> "$GITHUB_ENV" + echo "H3_LIBRARY=/usr/local/lib/libh3.so" >> "$GITHUB_ENV" # ALL FAMILIES. A family left out is stripped at preprocess time, so this # job would report on a smaller MobilityDB than the one it names. The tier diff --git a/catalog_gen.go b/catalog_gen.go index 4146d55..88b2e8c 100644 --- a/catalog_gen.go +++ b/catalog_gen.go @@ -45,8 +45,8 @@ var temporalTypes = []TemporalType{ {Name: "tint", Base: "int4", Box: "tbox", MFJSON: "MovingInteger", Spatial: false, Number: true, Linear: false, Funcs: []string{"appendInstant", "asBinary", "asMFJSON", "atTime", "deleteTime", "extent", "getTime", "interp", "merge", "numInstants", "numSequences", "sequenceN", "tbox", "timeSpan", "tintFromMFJSON", "tsample"}}, {Name: "tjsonb", Base: "jsonb", Box: "tstzspan", MFJSON: "MovingJsonb", Spatial: false, Number: false, Linear: false, Funcs: []string{"appendInstant", "asBinary", "asMFJSON", "atTime", "deleteTime", "extent", "getTime", "interp", "merge", "numInstants", "numSequences", "sequenceN", "timeSpan", "tjsonbFromMFJSON", "tsample"}}, {Name: "tnpoint", Base: "npoint", Box: "stbox", MFJSON: "MovingNetworkPoint", Spatial: true, Number: false, Linear: true, Funcs: []string{"appendInstant", "asBinary", "asMFJSON", "atTime", "cumulativeLength", "deleteTime", "extent", "getTime", "interp", "merge", "numInstants", "numSequences", "sequenceN", "speed", "stbox", "timeSpan", "tnpointFromMFJSON", "trajectory", "tsample"}}, - {Name: "tpcpatch", Base: "pcpatch", Box: "tpcbox", MFJSON: "MovingPCPatch", Spatial: true, Number: false, Linear: false, Funcs: []string{"appendInstant", "asBinary", "asMFJSON", "atTime", "deleteTime", "extent", "getTime", "interp", "merge", "numInstants", "numSequences", "sequenceN", "timeSpan", "tpcbox", "tpcpatchFromMFJSON", "tsample"}}, - {Name: "tpcpoint", Base: "pcpoint", Box: "tpcbox", MFJSON: "MovingPCPoint", Spatial: true, Number: false, Linear: false, Funcs: []string{"appendInstant", "asBinary", "asMFJSON", "atTime", "deleteTime", "extent", "getTime", "interp", "merge", "numInstants", "numSequences", "sequenceN", "timeSpan", "tpcbox", "tpcpointFromMFJSON", "tsample"}}, + {Name: "tpcpatch", Base: "pcpatch", Box: "tpcbox", MFJSON: "MovingPCPatch", Spatial: true, Number: false, Linear: false, Funcs: []string{"appendInstant", "asBinary", "asMFJSON", "atTime", "deleteTime", "extent", "getTime", "interp", "merge", "numInstants", "numSequences", "sequenceN", "timeSpan", "tpcbox", "tpcpatchFromMFJSON", "transform", "tsample"}}, + {Name: "tpcpoint", Base: "pcpoint", Box: "tpcbox", MFJSON: "MovingPCPoint", Spatial: true, Number: false, Linear: false, Funcs: []string{"appendInstant", "asBinary", "asMFJSON", "atTime", "deleteTime", "extent", "getTime", "interp", "merge", "numInstants", "numSequences", "sequenceN", "timeSpan", "tpcbox", "tpcpointFromMFJSON", "transform", "tsample"}}, {Name: "tpose", Base: "pose", Box: "stbox", MFJSON: "MovingPose", Spatial: true, Number: false, Linear: true, Funcs: []string{"appendInstant", "asBinary", "asMFJSON", "atTime", "deleteTime", "extent", "getTime", "interp", "merge", "numInstants", "numSequences", "sequenceN", "setSRID", "speed", "stbox", "timeSpan", "tposeFromMFJSON", "trajectory", "transform", "tsample"}}, {Name: "tposechain", Base: "posechain", Box: "stbox", MFJSON: "MovingPoseChain", Spatial: true, Number: false, Linear: true, Funcs: []string{"appendInstant", "asBinary", "asMFJSON", "atTime", "deleteTime", "eIntersects", "extent", "getTime", "interp", "merge", "numInstants", "numSequences", "sequenceN", "setSRID", "stbox", "timeSpan", "tposechainFromMFJSON", "transform", "tsample"}}, {Name: "tquadbin", Base: "quadbin", Box: "stbox", MFJSON: "MovingQuadbin", Spatial: true, Number: false, Linear: false, Funcs: []string{"appendInstant", "asBinary", "asMFJSON", "atTime", "deleteTime", "extent", "getTime", "interp", "merge", "numInstants", "numSequences", "sequenceN", "stbox", "timeSpan", "tquadbinFromMFJSON", "tsample"}}, @@ -60,7 +60,7 @@ var temporalTypes = []TemporalType{ var boxFunctions = map[string][]string{ "stbox": []string{"asBinary", "extent", "setSRID", "timeSpan", "transform"}, "tbox": []string{"asBinary", "extent", "timeSpan"}, - "tpcbox": []string{"asBinary", "extent", "setSRID", "stbox"}, + "tpcbox": []string{"asBinary", "extent", "stbox", "transform"}, "tstzspan": []string{"asBinary", "extent", "stbox", "tbox"}, }