diff --git a/docs/postgres.rst b/docs/postgres.rst
index 017b3c47e7c1e330bf737c86c876fdcb768fcd1e..b5027fefb0df62ed3044e63e010d04224ae69811 100644
--- a/docs/postgres.rst
+++ b/docs/postgres.rst
@@ -98,7 +98,7 @@ To complete the conversion shut down the synapse server and run the port
 script one last time, e.g. if the SQLite database is at  ``homeserver.db``
 run::
 
-    synapse_port_db.py --sqlite-database homeserver.db \
+    synapse_port_db --sqlite-database homeserver.db \
         --postgres-config database_config.yaml
 
 Once that has completed, change the synapse config to point at the PostgreSQL