From 0890891bb0159f9d471502dc38e2e861391994bf Mon Sep 17 00:00:00 2001 From: erdnaxe Date: Tue, 22 Aug 2023 15:52:40 +0200 Subject: [PATCH] Add local PostgreSQL socket example to README (#126) --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index ea10a74..30d28a1 100644 --- a/README.md +++ b/README.md @@ -36,9 +36,17 @@ This will create an executable and store it in `synapse_auto_compressor/target/debug/synapse_auto_compressor`. ## Example usage + +Compress 100 chunks of size 500 in a remote PostgreSQL database: ``` $ synapse_auto_compressor -p postgresql://user:pass@localhost/synapse -c 500 -n 100 ``` + +Compress 100 chunks of size 500 using local PostgreSQL socket: +``` +$ sudo -u postgres synapse_auto_compressor -p "user=postgres dbname=matrix-synapse host=/var/run/postgresql" -c 500 -n 100 +``` + ## Running Options - -p [POSTGRES_LOCATION] **Required**