summaryrefslogtreecommitdiff
path: root/INSTALL
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2012-04-12 20:47:24 +0200
committerAndreas Baumann <abaumann@yahoo.com>2012-04-12 20:47:24 +0200
commitb8b6f075b0edb77b2014bf84130a69903ad5519e (patch)
tree66288dccb9a5e64fe8274c60fe8fb43d3652ea71 /INSTALL
parent585c4edab687be0dc38c8bba93aa0cafb6bdc771 (diff)
downloadpgfuse-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--INSTALL28
1 files changed, 28 insertions, 0 deletions
diff --git a/INSTALL b/INSTALL
index 0f3cc4b..675b7a5 100644
--- a/INSTALL
+++ b/INSTALL
@@ -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!
+