You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using tiktoken_count in a generated column on managed Postgres instances (like Neon), we encounter:
ERROR: generation expression is not immutable
Since tokenization is deterministic (same input → same output), marking these functions as IMMUTABLE in the extension itself would allow direct use in generated columns without requiring superuser privileges.
Description
When using
tiktoken_count
in a generated column on managed Postgres instances (like Neon), we encounter:Since tokenization is deterministic (same input → same output), marking these functions as
IMMUTABLE
in the extension itself would allow direct use in generated columns without requiring superuser privileges.Example Use Case
Benefits
The text was updated successfully, but these errors were encountered: