Created
June 23, 2011 13:08
-
-
Save thb/1042498 to your computer and use it in GitHub Desktop.
Postgresql : grant usage of c language for a given user
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
postgres=# GRANT USAGE ON LANGUAGE c TO rails; | |
ERREUR: le langage « c » n'est pas de confiance | |
ASTUCE : Seuls les super-utilisateurs peuvent utiliser des langages qui ne sont pas | |
de confiance. | |
postgres=# UPDATE pg_language SET lanpltrusted = true WHERE lanname = 'c'; | |
UPDATE 1 | |
postgres=# GRANT USAGE ON LANGUAGE c TO rails; | |
GRANT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to get the PostgreSQL 8.4 unaccent module?
Get archive at: http://launchpad.net/postgresql-unaccent/trunk/0.1/+download/postgresql-unaccent-0.1.tar.gz
Install dependencies:
Then just uncompress the archive, compile and install.
Then go to your database and create the unaccent functions: