From 64998fee5d38a9d2bac14208953cf80eaed351ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Esteban=20Zim=C3=A1nyi?= Date: Fri, 20 Nov 2026 10:12:15 +0100 Subject: [PATCH 1/2] Regenerate the catalog tables from the catalog of MobilityDB master catalog_gen.go is what tools/codegen writes from the catalog of MobilityDB master, which states the temporal point cloud functions and the functions of tpcbox (transform, without setSRID) as master declares them, so the table rows of tpcpatch, tpcpoint and tpcbox follow it. --- catalog_gen.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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"}, } From ba251e20691ce5dc5b9763b0bed9d383d05f8155 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Esteban=20Zim=C3=A1nyi?= Date: Fri, 20 Nov 2026 09:51:32 +0100 Subject: [PATCH 2/2] Build the H3 release MobilityDB names in the conformance job MobilityDB supports one H3 release, H3_REQUIRED_VERSION of its CMakeLists.txt, and its configure refuses any other, so the conformance job builds that release from its tag with MobilityDB's own .github/scripts/install-h3.sh, as MobilityDB's pgversion.yml does, and passes its header and library to the -DALL=ON build, rather than taking pgdg's libh3-dev. The h3 PostgreSQL extension stays a pgdg package. --- .github/workflows/go.yml | 38 ++++++++++++++++---------------------- 1 file changed, 16 insertions(+), 22 deletions(-) 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