I would like to install pgcrypto in Windows. I have a file C:\Program\PostgreSQL\9.0\share\contrib\pgcrypto.sql but when I try to run it in psql I get an error:
C:: Permission denied
How do I solve this?
|
I would like to install
How do I solve this? |
||||
| show 1 more comment |
|
Depending on the full error message you receive (I have a hunch you didn't post it in full) you probably are trying to run the script by using a login role which is not superuser:
|
|||
|
|
C:\Program\PostgreSQL\9.0\share\pgcrypto.sqland not atC:\Program Files\PostgreSQL\9.0\share\pgcrypto.sqlfor example? – Jack Douglas♦ Jun 13 '11 at 13:39C:\Program\PostgreSQL\9.0\lib\pgcrypto.dllandC:\Program\PostgreSQL\9.0\share\contrib\pgcrypto.sql– Jonas Jun 13 '11 at 13:42psqlcommand prompt as Administrator. – Jonas Jun 13 '11 at 13:43