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
The max size for an index in Postgres is 2704 bytes or so, and instructions can be longer than that. Since we index instructions, this can lead to broken databases (and/or broken backup restores). This can be solved one of two ways:
Remove the recipe instruction index and remove recipe instructions from the recipe search
Create a normalized instructions field that also caps the instructions size, and index/search that instead
Number 1 is probably the right choice, but if there's a compelling reason to include recipe instructions when searching, number 2 is an alternative.
Steps to Reproduce
Create a long recipe instruction (3,000 characters or so)
Create a backup
Restore from that backup (on Postgres)
Please provide relevant logs
(psycopg2.errors.ProgramLimitExceeded) index row size 3120 exceeds btree version 4 maximum 2704 for index "ix_recipe_instructions_text"
Mealie Version
nightly
Deployment
Docker (Synology)
Additional Deployment Details
No response
The text was updated successfully, but these errors were encountered:
First Check
What is the issue you are experiencing?
The max size for an index in Postgres is 2704 bytes or so, and instructions can be longer than that. Since we index instructions, this can lead to broken databases (and/or broken backup restores). This can be solved one of two ways:
Number 1 is probably the right choice, but if there's a compelling reason to include recipe instructions when searching, number 2 is an alternative.
Steps to Reproduce
Please provide relevant logs
(psycopg2.errors.ProgramLimitExceeded) index row size 3120 exceeds btree version 4 maximum 2704 for index "ix_recipe_instructions_text"
Mealie Version
nightly
Deployment
Docker (Synology)
Additional Deployment Details
No response
The text was updated successfully, but these errors were encountered: