Add PostgreSQL production backend to eliminate SQLite lock contention.

Support DATABASE_URL with connection pooling, pg_dump backups, SQLite migration script, and deploy_postgres.sh with docs.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-01 08:11:42 +08:00
parent 39eac983ff
commit 52aca456e9
23 changed files with 1208 additions and 150 deletions
+4
View File
@@ -8,3 +8,7 @@ akshare==1.18.64
# CTP 下单:SimNow 模拟盘 / 期货公司实盘(见 docs/DEPLOY.md
vnpy>=3.9.0
vnpy_ctp>=6.7.11.4
# PostgreSQL 生产库(配置 DATABASE_URL 时启用;未配置则仍用 SQLite)
psycopg[binary]>=3.2.0
psycopg-pool>=3.2.0