prefix
prefix copied to clipboard
Prefix Range module for PostgreSQL
in `prefix.c` around line 700, function pr_overlaps ``` static inline bool pr_overlaps(prefix_range *a, prefix_range *b) { prefix_range *inter = pr_inter(a, b); return strlen(inter->prefix) > 0 || (inter->first != 0 &&...
```sh prefix.c:1273:12: style: Redundant initialization for 'maxoff'. The initialized value is overwritten before it is read. [redundantInitialization] maxoff = entryvec->n - 1; ^ prefix.c:1260:25: note: maxoff is initialized OffsetNumber maxoff...
Hello all, i have a question: Can we use this module with Array Column: IMO it can be more effiecnt since we will be able to store multi prefixes for...
Compile issues on Postgres 16 on Ubuntu 22; seems like a lot of warnings overwhelm it. Builds fine on macOS tho. Weird. Build logs attached. [pg16.txt](https://github.com/user-attachments/files/18203532/pg16.txt) [pg17.txt](https://github.com/user-attachments/files/18203533/pg17.txt)
I'm trying to add a constraint to a table to prevent overlapping prefixes with the same length. So a prefix of 1 and 1[2-5] are fine, but if you then...
here is the error log: prefix.c -MMD -MP -MF .deps/prefix.Po prefix.c:62:3: warning: no previous declaration for ‘pr_delimiters’ [-Wmissing-variable-declarations] 62 | } pr_delimiters; shouldn't be hard to fix it . thanks!