Repository navigation
v1.4.9
Server, pyhoglake and hedgerow release.
- pyhoglake now writes object-prefix (
<field>=<value>/) tables itself, and its VARIANT writes cost less per file. - The server routes catalog requests per request through a
CatalogStoreseam. This wires the hoglite backend behind JWT routing claims, lets the server boot without PostgreSQL, and adds the mount series, dark behind a switch. - Migrations: two small ones, V34 and V35.
- Upgrading: an existing PostgreSQL deployment needs no config change. Mounts stay off unless an operator turns on
hog_mount_switch, and requests without a routing claim behave as before.
Server
- Catalog seam and hoglite routing (#546, #547):
- The core catalog routes go through a
CatalogStoreseam. - A verified JWT
rtgclaim (bbackend kind,beallowlisted backend ID,ttenant) routes a catalog's requests to that backend. - A request without a routing claim uses the configured default backend (
HOGLAKE_DEFAULT_BACKEND,HOGLAKE_BACKENDS_FILE). hoglite can't be the default. - On hoglite, uploads, table creations, alters, views and partition backends are selected per request. Maintenance and publications are PostgreSQL-only and answer a typed 501.
- The core catalog routes go through a
- Boot without PostgreSQL (#554):
- With
HOGLAKE_DEFAULT_BACKEND=none, startup opens no pool and runs no migration. - The first request routed to PostgreSQL (
HOGLAKE_POSTGRES_BACKEND_ID) opens the pool and migrates. A failure there answers 503backend_unavailable, and a later request can retry. postgresstays the default, with the same eager startup.
- With
- Mounts, dark behind
hog_mount_switch(#555, #556, #557, #558, #559, #561, #562):- A mount is a read-only catalog name,
<orgID>-events, over a table in this instance's PostgreSQL catalogs. It serves only verifiedten: scopedcallers whosecatnames it. - Dispatch happens before placement:
- a non-read route answers 403
read_only_catalog; POST /v1/catalogsrefuses the reserved name shape with 422, whatever the switch says;- refusals are counted per mount and in the gate's auth outcome.
- a non-read route answers 403
- The operator API is
PUT /v1/mounts/{name}, writable only by the subjectHOGLAKE_MOUNT_WRITER_SUBJECTnames. Each write is a CAS on its revision and is audited asmount_write. - A mount compiles its read scope, appears in its scoped readers' catalog listing, and serves the scoped export (read) routes.
- A mount can be served by another hoglake, which proxies the reads (
HOGLAKE_MOUNT_HOSTS_FILE). - Other settings:
HOGLAKE_MOUNT_ALLOWLIST,HOGLAKE_MOUNT_SOURCE_*, and the scan boundsHOGLAKE_MOUNT_SCAN_DEADLINE_MS,HOGLAKE_MOUNT_SCAN_FILE_BUDGETandHOGLAKE_MOUNT_SCAN_MAX_CONCURRENT.
- A mount is a read-only catalog name,
pyhoglake / hedgerow
- Object-prefix writes (#563):
- While
TableInfo.object_prefix_fieldis set,Table.append,prepare_append_tablesandprepare_append_fileswrite each file under<data_path>/data/<ns>/<table>/<field>=<value>/. Each file's own footer must prove the value before anything is uploaded. Until now, such a table refused every commit from these writers. - A null, non-canonical or out-of-range prefix value, or a layout the client can't place under, raises
ValidationErrorbefore any encode. - New
footer_stats_min_bytes=(defaultDEFAULT_FOOTER_STATS_MIN_BYTES, 1 MiB) on the three writers. Withdeferred_stats=Trueon such a table, a smaller file registers the prefix field's stats only (providedat commit), and a larger file registers every stat. - New
ops.set_object_prefix_field(name). expected_table_infoalso comparesobject_prefix_field.- Tables without the option are unchanged. Payloads and object bytes are pinned against 1.4.8 by
tests/vectors/write_golden.json. appendstreams its uploads again on tables without variant columns.
- While
- Faster VARIANT writes (#564):
- The fixed per-file cost of a shredded VARIANT
write_partdrops from about 7 ms to about 4.4 ms. Output bytes are unchanged. - 100k whale-shaped rows, native codec: −18% per row at 500 groups, −34% at 2000.
- Compiled plans, stamped footers and schema comparisons are kept in a bounded, locked LRU.
VariantReport.encoded_by("rust"/"python") records which codec produced the storage. The writer skips its second structure check only for Rust output.compile_planchecks a declaration's size before walking it. A caller-built DAG or cycle is now refused promptly; on main this used to take time exponential in its depth.
- The fixed per-file cost of a shredded VARIANT
- Variant codec: unchanged; the
variant-codecextra still pinspyhoglake-variant-codec0.1.0.
Bench
- A standalone CostBench runner and a nine-worker NVMe profile (#548).
Operators
- Migrations V34–V35: both are small and transactional, with a 5 s lock timeout.
- V34 adds the one-row
hog_mount_switch(off). - V35 adds the empty
hog_mounttable.
- V34 adds the one-row
- Mounts: off until
UPDATE hog_mount_switch SET enabled = true;, a mount row andHOGLAKE_MOUNT_ALLOWLISTare all in place. - Defaults:
HOGLAKE_DEFAULT_BACKENDdefaults topostgres, unchanged.