Skip to content

v0.1.3

Choose a tag to compare

@github-actions github-actions released this 20 Sep 23:14
· 3287 commits to main since this release

fenec-pg is 966 752 bytes against 0.1.2's 983 264, and the container
image is 1.23 MB against 1.25.

0.1.2 moved FenecQL and JSON onto a hand-written decimal parser so the wasm
module could drop Eisel-Lemire's 12 KB table of powers of five. The server
was left reaching for str::parse::<f64>() as well, on the grounds that
PostgreSQL's float8 accepts inf and the new parser does not — so it
shipped carrying both the table and the parser meant to replace it.

That turned out to be four lines of work rather than a reason. The specials
are recognised explicitly — an optional sign, then inf, infinity or
nan, case-insensitive, -nan keeping its sign bit, which is exactly what
str::parse took — and every actual decimal goes to the shared parser.

0.1.2 0.1.3
fenec-pg, linux/amd64 1 241 760 1 221 280
container image, amd64 1.25 MB 1.23 MB
dec2flt table in the binary yes no

The wasm module is unchanged at 295 564 bytes: none of this reaches it.

One behaviour moved

A float in an HTTP query string is read the way a float in a JSON body and a
float in FenecQL are read, so ?x=inf is no longer a number. It never
was in the other two; the query string accepted it only because it reached
for a different parser. Everything that is actually a decimal is unaffected,
bit for bit.

Still paid for

The default fenec binary keeps the table, deliberately: fenec-import
reads pgvector's text with parse::<f32>(), and routing that through the
shared parser before narrowing would round twice. A vector component is not
worth being slightly wrong about. make small does not include import, and
has no table.

Verifying a download

SHA256SUMS covers every archive.

docker pull ghcr.io/fenecdb/fenec-pg:0.1.3

Multi-arch, linux/amd64 and linux/arm64 — scratch plus a static musl
binary, so there is no shell, no package manager and no libc in it.