Skip to content

Commit 0890891

Browse files
authored
Add local PostgreSQL socket example to README (#126)
1 parent 8dc70fe commit 0890891

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,17 @@ This will create an executable and store it in
3636
`synapse_auto_compressor/target/debug/synapse_auto_compressor`.
3737

3838
## Example usage
39+
40+
Compress 100 chunks of size 500 in a remote PostgreSQL database:
3941
```
4042
$ synapse_auto_compressor -p postgresql://user:pass@localhost/synapse -c 500 -n 100
4143
```
44+
45+
Compress 100 chunks of size 500 using local PostgreSQL socket:
46+
```
47+
$ sudo -u postgres synapse_auto_compressor -p "user=postgres dbname=matrix-synapse host=/var/run/postgresql" -c 500 -n 100
48+
```
49+
4250
## Running Options
4351

4452
- -p [POSTGRES_LOCATION] **Required**

0 commit comments

Comments
 (0)