惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
T
Troy Hunt's Blog
P
Proofpoint News Feed
V
Vulnerabilities – Threatpost
C
Cybersecurity and Infrastructure Security Agency CISA
K
Kaspersky official blog
Cyberwarzone
Cyberwarzone
T
Tor Project blog
Cisco Talos Blog
Cisco Talos Blog
S
Securelist
L
Lohrmann on Cybersecurity
Security Latest
Security Latest
T
Threatpost
H
Heimdal Security Blog
W
WeLiveSecurity
A
Arctic Wolf
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
G
GRAHAM CLULEY
IT之家
IT之家
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
TaoSecurity Blog
TaoSecurity Blog
A
About on SuperTechFans
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
N
News and Events Feed by Topic
Hacker News - Newest:
Hacker News - Newest: "LLM"
Last Week in AI
Last Week in AI
T
The Blog of Author Tim Ferriss
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Microsoft Azure Blog
Microsoft Azure Blog
Hugging Face - Blog
Hugging Face - Blog
Google DeepMind News
Google DeepMind News
量子位
Stack Overflow Blog
Stack Overflow Blog
Know Your Adversary
Know Your Adversary
B
Blog RSS Feed
阮一峰的网络日志
阮一峰的网络日志
WordPress大学
WordPress大学
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
AI
AI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 司徒正美
Apple Machine Learning Research
Apple Machine Learning Research
GbyAI
GbyAI
Vercel News
Vercel News
C
Cyber Attacks, Cyber Crime and Cyber Security
Latest news
Latest news
D
Darknet – Hacking Tools, Hacker News & Cyber Security
大猫的无限游戏
大猫的无限游戏
Forbes - Security
Forbes - Security

手里有只毛毛虫

PHP 利用ImageMagick实现多页PDF转一张图片 语言的艺术:一本正经胡说八道 上手:五块钱的目村眼镜 转载:MEOW MEOW? 2025 年度AI工具推荐 包含链接地址 如何识别哪些是 AI 生成的内容 关闭 n8n 的匿名遥测数据 - 手里有只毛毛虫 WordPress 6.9 更新后 SMTP 邮件发送失效解决办法 为 Automate 自动化接入豆包ai 识别图形验证码 - 手里有只毛毛虫
白嫖阿里云免费PG数据库
毛毛虫 · 2026-01-13 · via 手里有只毛毛虫

去年年底,阿里云悄咪咪上线了一个 Supabase 平台,最吸引人的就是阿里云原生数据仓库 AnalyticDB PostgreSQL版 下多了免费的1核2G PostgreSQL 数据库。

当然,每人只能创建一台。

介绍也一如既往鸡贼,跟ESA免费版一样,注明了仅用于开发测试。信他就是对羊毛党的不尊重,薅它就完事了。

创建免费测试

打开:https://gpdbnext.console.aliyun.com/gpdb/cn-hangzhou/supabase

注意要选择地区,首批 Supabase PostgreSQL 支持的地区不全,比如就没有广州地区,无伤大雅,直接离服务器最近的。

一般来说,如果没有杭州地区的阿里云服务器,专有网络专有网络交换机是空的,需要去阿里云VPC控制台创建,要记住这里的可用区(杭州 可用区J)。

创建专有网络,可用区要与上方一样

回到创建项目,就可以看到专有网络存在了,ip白名单填写自己服务器IP。

如果服务器也是在同一个专有网络里,就可以走内网连接,速度非常块。

也可以不设白名单,直接0.0.0.0暴露公网,给其他不确定IP的服务使用,如Vercel、Dokploy...

1panel添加远程服务器

用户名默认是:postgres

数据库地址填外网连接地址,可以在阿里云Supabase PostgreSQL 基本信息里查看。

项目ID.supabase.opentrust.net

性能测试

毕竟是免费,公网连接,网络物理延迟是性能的瓶颈,Debuff叠满了,测试仅供图一乐。

  • 测试软件:pgbench
  • 连接方式:公网
  • 地区:深圳->广州

标准压力测试

  • 10 个并发连接
  • 2 个线程
  • 30 秒
  • 5 秒 报告一次
pgbench -h spb-*.supabase.opentrust.net -p 5432 -U postgres -c 10 -j 2 -T 30 -P 5 test
Password:

pgbench (18.1, server 15.8)
starting vacuum...end.
progress: 5.0 s, 38.4 tps, lat 233.286 ms stddev 95.465, 0 failed
progress: 10.0 s, 42.2 tps, lat 236.762 ms stddev 56.552, 0 failed
progress: 15.0 s, 42.4 tps, lat 236.857 ms stddev 48.884, 0 failed
progress: 20.0 s, 42.4 tps, lat 235.358 ms stddev 52.196, 0 failed
progress: 25.0 s, 42.4 tps, lat 236.359 ms stddev 49.955, 0 failed
progress: 30.0 s, 42.4 tps, lat 235.453 ms stddev 41.865, 0 failed
transaction type: <builtin: TPC-B (sort of)>
scaling factor: 1
query mode: simple
number of clients: 10
number of threads: 2
maximum number of tries: 1
duration: 30 s
number of transactions actually processed: 1261
number of failed transactions: 0 (0.000%)
latency average = 235.723 ms
latency stddev = 59.334 ms
initial connection time = 398.050 ms
tps = 42.248489 (without initial connection time)

如果是公网链接,并不适合做读写频繁的业务,42 TPS拉到裤子里了。

只读模式

  • 20 个并发连接
  • 30 秒
pgbench -h spb-*.supabase.opentrust.net -p 5432 -U postgres -S -c 20 -T 30 test
Password:

pgbench (18.1, server 15.8)
starting vacuum...end.
transaction type: <builtin: select only>
scaling factor: 1
query mode: simple
number of clients: 20
number of threads: 1
maximum number of tries: 1
duration: 30 s
number of transactions actually processed: 51865
number of failed transactions: 0 (0.000%)
latency average = 10.917 ms
initial connection time = 1715.783 ms
tps = 1832.048180 (without initial connection time)

只读性能倒是非常优秀,适合SQL轻写入的项目。

总结

目前,该免费版本目前 没有试用时长或次数限制 ,但阿里云保留未来调整免费策略的权利,并会通过公告等方式提前通知。

且用且珍惜吧。