diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2012-04-12 20:47:24 +0200 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2012-04-12 20:47:24 +0200 |
commit | b8b6f075b0edb77b2014bf84130a69903ad5519e (patch) | |
tree | 66288dccb9a5e64fe8274c60fe8fb43d3652ea71 /INSTALL | |
parent | 585c4edab687be0dc38c8bba93aa0cafb6bdc771 (diff) | |
download | pgfuse-b8b6f075b0edb77b2014bf84130a69903ad5519e.tar.gz pgfuse-b8b6f075b0edb77b2014bf84130a69903ad5519e.tar.bz2 |
added some rudimentary install docu, renamed test.sql to create.sql and schema.sql
Diffstat (limited to 'INSTALL')
-rw-r--r-- | INSTALL | 28 |
1 files changed, 28 insertions, 0 deletions
@@ -9,3 +9,31 @@ Compilation ----------- make + +Installation +------------ + +* Create a postgresql user and database (as user postgres) + + createuser -S -R -D -P someuser (enter some password) + createdb -O someuser somedb + + make sure access permissions are right in pg_hba.conf. + +* Initialize the database schema (as user using fuse) + + psql -U someuser somedb < schema.sql + +* Mount the FUSE filesystem + + pgfuse "user=someuser dbname=somedb" + + If you use a password, store the password in ~/.pgpass: + + dbhost:5432:somedb:someuser:somepass + + (or in any file specified in the PASSFILE environment variable) + + Though you can specify password directly in the PostgreSQL + connection string, this is not safe! + |