aboutsummaryrefslogtreecommitdiff
path: root/weed/command
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-01-19 18:07:29 -0800
committerChris Lu <chris.lu@gmail.com>2021-01-19 18:07:29 -0800
commitd5add83e85da0c61fe107842e7dd82b52af2bcdb (patch)
tree1892f643a0564bf1dd27beec46fc9224f91af83a /weed/command
parent52a8f1470ef92b9d0075c3dccc76a4170ab30c07 (diff)
downloadseaweedfs-d5add83e85da0c61fe107842e7dd82b52af2bcdb.tar.xz
seaweedfs-d5add83e85da0c61fe107842e7dd82b52af2bcdb.zip
filer store: add postgres2
Diffstat (limited to 'weed/command')
-rw-r--r--weed/command/scaffold.go20
1 files changed, 20 insertions, 0 deletions
diff --git a/weed/command/scaffold.go b/weed/command/scaffold.go
index b44bc41c1..c42dce7be 100644
--- a/weed/command/scaffold.go
+++ b/weed/command/scaffold.go
@@ -160,6 +160,26 @@ sslmode = "disable"
connection_max_idle = 100
connection_max_open = 100
+[postgres2]
+enabled = false
+createTable = """
+ CREATE TABLE IF NOT EXISTS %s (
+ dirhash BIGINT,
+ name VARCHAR(65535),
+ directory VARCHAR(65535),
+ meta bytea,
+ PRIMARY KEY (dirhash, name)
+ );
+"""
+hostname = "localhost"
+port = 5432
+username = "postgres"
+password = ""
+database = "" # create or use an existing database
+sslmode = "disable"
+connection_max_idle = 100
+connection_max_open = 100
+
[cassandra]
# CREATE TABLE filemeta (
# directory varchar,