SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
use a compatible pg syntax for upsert
LazyDBA247-Anyvision9f1cab179c1c
diff --git a/weed/command/scaffold.go b/weed/command/scaffold.goindex babcdcdc7c..7df69e211f 100644--- a/weed/command/scaffold.go+++ b/weed/command/scaffold.go@@ -168,7 +168,7 @@ connection_max_idle = 100connection_max_open = 100connection_max_lifetime_seconds = 0# if insert/upsert failing, you can disable upsert or update query syntax to match your RDBMS syntax:-upsertQuery = """INSERT INTO "%[1]s" (dirhash,name,directory,meta) VALUES($1,$2,$3,$4) ON CONFLICT ON CONSTRAINT "%[1]s_pkey" DO UPDATE SET meta = EXCLUDED.meta WHERE "%[1]s".meta != EXCLUDED.meta"""+upsertQuery = """INSERT INTO "%[1]s" (dirhash,name,directory,meta) VALUES($1,$2,$3,$4) ON CONFLICT (dirhash,name) DO UPDATE SET meta = EXCLUDED.meta WHERE "%[1]s".meta != EXCLUDED.meta"""enableUpsert = true[postgres2]