Hide Forgot
Description of problem: I'm trying to install custom dictionary for my language (czech) from ispell to postgres 9.2 into my application. I've setup port forwarding of the app and executed following code via pgAdmin: CREATE TEXT SEARCH DICTIONARY czech ( TEMPLATE = ispell, DictFile = czech, AffFile = czech, StopWords = czech ); But got an error: ERROR: could not open dictionary file "/opt/rh/postgresql92/root/usr/share/pgsql/tsearch_data/czech.dict": No such file or directory I don't have access to that directory, so the dictionary cannot be loaded from there. Specifying absolute path does not work. It seems that its not allowed by postgres. I can execute that on my dev machine, but not on Openshift. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. CREATE TEXT SEARCH DICTIONARY czech ( TEMPLATE = ispell, DictFile = czech, AffFile = czech, StopWords = czech ); Actual results: ERROR: could not open dictionary file "/opt/rh/postgresql92/root/usr/share/pgsql/tsearch_data/czech.dict": No such file or directory Expected results: Additional info:
My understanding is that postgresql does not include these files in its source tree, and you must retrieve them from some other source. It does not appear that there's a way for a user without access to /opt/rh/postgresql92/root/usr/share/pgsql to add dictionaries (and this is a compile-time option, so we can't fix it with symlinks).
Eventually you can modify the postgresql cartridge and add that file manually.
Follow status of enhancement here: https://trello.com/c/8edB9ciz