I was reading up on materialized views in the PostgreSQL 9.3 documentation and came across the following example, which is given in reference to spell checking a word:
SELECT word FROM words ORDER BY word <-> 'caterpiler' LIMIT 10;
I've tried searching Google and StackOverflow, but punctuation gets filtered out and I cannot see to come up what it is referring to. Can someone explain how and what it is used for?
And maybe a link to the documentation where I can read up more on the details of its usage?
SELECT * FROM pg_operator where oprname = '<->' ;