![]() | |
#1
| |||
| |||
|
|
I have an installation of Postgres 8.2.3 on MacOS X. To my shame I admit that I know next to nothing about Postgres apart from that it exists. I have inherited this database as backend for a web application and it has worked so flawlessly for me since that I have not bothered to investigate in-depth. |
|
I have now been tasked with installing/enabling pg_trgm and tsearch2 on the MacOS target machine. And am lost. I have tsearch2.so in /usr/local/pgsql/lib and have run the tsearch.sql which did not show any errors, so I seem to be fine on that. But what about pg_trgm? SELECT show_trgm('abc'); fails with ERROR: function show_trgm("unknown") does not exist OK. There is no file by name *pg_trgm* on the system. Do I need to add something? Build something? Or is there SQL I can run as for tsearch2? |
#2
| |||
| |||
|
|
I have an installation of Postgres 8.2.3 on MacOS X. To my shame I admit that I know next to nothing about Postgres apart from that it exists. I have inherited this database as backend for a web application and it has worked so flawlessly for me since that I have not bothered to investigate in-depth. |
|
I have now been tasked with installing/enabling pg_trgm and tsearch2 on the MacOS target machine. And am lost. I have tsearch2.so in /usr/local/pgsql/lib and have run the tsearch.sql which did not show any errors, so I seem to be fine on that. But what about pg_trgm? SELECT show_trgm('abc'); fails with ERROR: function show_trgm("unknown") does not exist OK. There is no file by name *pg_trgm* on the system. Do I need to add something? Build something? Or is there SQL I can run as for tsearch2? |
#3
| |||
| |||
|
|
I have an installation of Postgres 8.2.3 on MacOS X. To my shame I admit that I know next to nothing about Postgres apart from that it exists. I have inherited this database as backend for a web application and it has worked so flawlessly for me since that I have not bothered to investigate in-depth. |
|
I have now been tasked with installing/enabling pg_trgm and tsearch2 on the MacOS target machine. And am lost. I have tsearch2.so in /usr/local/pgsql/lib and have run the tsearch.sql which did not show any errors, so I seem to be fine on that. But what about pg_trgm? SELECT show_trgm('abc'); fails with ERROR: function show_trgm("unknown") does not exist OK. There is no file by name *pg_trgm* on the system. Do I need to add something? Build something? Or is there SQL I can run as for tsearch2? |
#4
| |||
| |||
|
|
I have an installation of Postgres 8.2.3 on MacOS X. To my shame I admit that I know next to nothing about Postgres apart from that it exists. I have inherited this database as backend for a web application and it has worked so flawlessly for me since that I have not bothered to investigate in-depth. |
|
I have now been tasked with installing/enabling pg_trgm and tsearch2 on the MacOS target machine. And am lost. I have tsearch2.so in /usr/local/pgsql/lib and have run the tsearch.sql which did not show any errors, so I seem to be fine on that. But what about pg_trgm? SELECT show_trgm('abc'); fails with ERROR: function show_trgm("unknown") does not exist OK. There is no file by name *pg_trgm* on the system. Do I need to add something? Build something? Or is there SQL I can run as for tsearch2? |
#5
| |||
| |||
|
|
I have an installation of Postgres 8.2.3 on MacOS X. To my shame I admit that I know next to nothing about Postgres apart from that it exists. I have inherited this database as backend for a web application and it has worked so flawlessly for me since that I have not bothered to investigate in-depth. |
|
I have now been tasked with installing/enabling pg_trgm and tsearch2 on the MacOS target machine. And am lost. I have tsearch2.so in /usr/local/pgsql/lib and have run the tsearch.sql which did not show any errors, so I seem to be fine on that. But what about pg_trgm? SELECT show_trgm('abc'); fails with ERROR: function show_trgm("unknown") does not exist OK. There is no file by name *pg_trgm* on the system. Do I need to add something? Build something? Or is there SQL I can run as for tsearch2? |
#6
| |||
| |||
|
|
I have an installation of Postgres 8.2.3 on MacOS X. To my shame I admit that I know next to nothing about Postgres apart from that it exists. I have inherited this database as backend for a web application and it has worked so flawlessly for me since that I have not bothered to investigate in-depth. |
|
I have now been tasked with installing/enabling pg_trgm and tsearch2 on the MacOS target machine. And am lost. I have tsearch2.so in /usr/local/pgsql/lib and have run the tsearch.sql which did not show any errors, so I seem to be fine on that. But what about pg_trgm? SELECT show_trgm('abc'); fails with ERROR: function show_trgm("unknown") does not exist OK. There is no file by name *pg_trgm* on the system. Do I need to add something? Build something? Or is there SQL I can run as for tsearch2? |
#7
| |||
| |||
|
|
I have an installation of Postgres 8.2.3 on MacOS X. To my shame I admit that I know next to nothing about Postgres apart from that it exists. I have inherited this database as backend for a web application and it has worked so flawlessly for me since that I have not bothered to investigate in-depth. |
|
I have now been tasked with installing/enabling pg_trgm and tsearch2 on the MacOS target machine. And am lost. I have tsearch2.so in /usr/local/pgsql/lib and have run the tsearch.sql which did not show any errors, so I seem to be fine on that. But what about pg_trgm? SELECT show_trgm('abc'); fails with ERROR: function show_trgm("unknown") does not exist OK. There is no file by name *pg_trgm* on the system. Do I need to add something? Build something? Or is there SQL I can run as for tsearch2? |
#8
| |||
| |||
|
|
I have an installation of Postgres 8.2.3 on MacOS X. To my shame I admit that I know next to nothing about Postgres apart from that it exists. I have inherited this database as backend for a web application and it has worked so flawlessly for me since that I have not bothered to investigate in-depth. |
|
I have now been tasked with installing/enabling pg_trgm and tsearch2 on the MacOS target machine. And am lost. I have tsearch2.so in /usr/local/pgsql/lib and have run the tsearch.sql which did not show any errors, so I seem to be fine on that. But what about pg_trgm? SELECT show_trgm('abc'); fails with ERROR: function show_trgm("unknown") does not exist OK. There is no file by name *pg_trgm* on the system. Do I need to add something? Build something? Or is there SQL I can run as for tsearch2? |
#9
| |||
| |||
|
|
There should be a file README.pg_trgm and a file pg_trgm.sql on your system. I have confirmed that there are no *pg_trgm* files on the system. |
|
Before posting I had downloaded the source to the module from http://www.sai.msu.su/~megera/postgres/gist/pg_trgm/ An checked the contents. It includes a README, but that does not tell me anything about installation, just how to use the functions. There is a pg_trgm.sql.in that apparently needs to be processed through a build process to arrive at something useable: .. create function set_limit(float4) returns float4 AS 'MODULE_PATHNAME' LANGUAGE 'C' with (isstrict,iscachable); pg_trgm.sql from the package is a set of tests demonstrating the functions. So does the fact that I don't have a file called pg_trgm.so or such mean that my package does not include/support the module? That I would have to build it from source? |
#10
| |||
| |||
|
|
There should be a file README.pg_trgm and a file pg_trgm.sql on your system. I have confirmed that there are no *pg_trgm* files on the system. |
|
Before posting I had downloaded the source to the module from http://www.sai.msu.su/~megera/postgres/gist/pg_trgm/ An checked the contents. It includes a README, but that does not tell me anything about installation, just how to use the functions. There is a pg_trgm.sql.in that apparently needs to be processed through a build process to arrive at something useable: .. create function set_limit(float4) returns float4 AS 'MODULE_PATHNAME' LANGUAGE 'C' with (isstrict,iscachable); pg_trgm.sql from the package is a set of tests demonstrating the functions. So does the fact that I don't have a file called pg_trgm.so or such mean that my package does not include/support the module? That I would have to build it from source? |
![]() |
| Thread Tools | |
| Display Modes | |
| |