Created
March 30, 2012 10:05
-
-
Save Govinda-Fichtner/2250544 to your computer and use it in GitHub Desktop.
Sphinx/Flying Sphinx Error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Generating Configuration to /app/config/production.sphinx.conf | |
PGError: ERROR: language "plpgsql" does not exist | |
HINT: Use CREATE LANGUAGE to load the language into the database. | |
: CREATE OR REPLACE FUNCTION crc32(word text) | |
RETURNS bigint AS $$ | |
DECLARE tmp bigint; | |
DECLARE i int; | |
DECLARE j int; | |
DECLARE byte_length int; | |
DECLARE word_array bytea; | |
BEGIN | |
IF COALESCE(word, '') = '' THEN | |
return 0; | |
END IF; | |
i = 0; | |
tmp = 4294967295; | |
byte_length = bit_length(word) / 8; | |
word_array = decode(replace(word, E'\\', E'\\\\'), 'escape'); | |
LOOP | |
tmp = (tmp # get_byte(word_array, i))::bigint; | |
i = i + 1; | |
j = 0; | |
LOOP | |
tmp = ((tmp >> 1) # (3988292384 * (tmp & 1)))::bigint; | |
j = j + 1; | |
IF j >= 8 THEN | |
EXIT; | |
END IF; | |
END LOOP; | |
IF i >= byte_length THEN | |
EXIT; | |
END IF; | |
END LOOP; | |
return (tmp # 4294967295); | |
END | |
$$ IMMUTABLE LANGUAGE plpgsql; | |
PGError: ERROR: language "plpgsql" does not exist | |
HINT: Use CREATE LANGUAGE to load the language into the database. | |
: CREATE OR REPLACE FUNCTION crc32(word text) | |
RETURNS bigint AS $$ | |
DECLARE tmp bigint; | |
DECLARE i int; | |
DECLARE j int; | |
DECLARE byte_length int; | |
DECLARE word_array bytea; | |
BEGIN | |
IF COALESCE(word, '') = '' THEN | |
return 0; | |
END IF; | |
i = 0; | |
tmp = 4294967295; | |
byte_length = bit_length(word) / 8; | |
word_array = decode(replace(word, E'\\', E'\\\\'), 'escape'); | |
LOOP | |
tmp = (tmp # get_byte(word_array, i))::bigint; | |
i = i + 1; | |
j = 0; | |
LOOP | |
tmp = ((tmp >> 1) # (3988292384 * (tmp & 1)))::bigint; | |
j = j + 1; | |
IF j >= 8 THEN | |
EXIT; | |
END IF; | |
END LOOP; | |
IF i >= byte_length THEN | |
EXIT; | |
END IF; | |
END LOOP; | |
return (tmp # 4294967295); | |
END | |
$$ IMMUTABLE LANGUAGE plpgsql; | |
PGError: ERROR: language "plpgsql" does not exist | |
HINT: Use CREATE LANGUAGE to load the language into the database. | |
: CREATE OR REPLACE FUNCTION crc32(word text) | |
RETURNS bigint AS $$ | |
DECLARE tmp bigint; | |
DECLARE i int; | |
DECLARE j int; | |
DECLARE byte_length int; | |
DECLARE word_array bytea; | |
BEGIN | |
IF COALESCE(word, '') = '' THEN | |
return 0; | |
END IF; | |
i = 0; | |
tmp = 4294967295; | |
byte_length = bit_length(word) / 8; | |
word_array = decode(replace(word, E'\\', E'\\\\'), 'escape'); | |
LOOP | |
tmp = (tmp # get_byte(word_array, i))::bigint; | |
i = i + 1; | |
j = 0; | |
LOOP | |
tmp = ((tmp >> 1) # (3988292384 * (tmp & 1)))::bigint; | |
j = j + 1; | |
IF j >= 8 THEN | |
EXIT; | |
END IF; | |
END LOOP; | |
IF i >= byte_length THEN | |
EXIT; | |
END IF; | |
END LOOP; | |
return (tmp # 4294967295); | |
END | |
$$ IMMUTABLE LANGUAGE plpgsql; | |
rake aborted! | |
Permission denied - /app/config/production.sphinx.conf | |
Tasks: TOP => ts:index => thinking_sphinx:index |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment