postgres=# CREATE EXTENSION IF NOT EXISTS timescaledb;
ERROR: could not open extension control file "/usr/share/postgresql/12/extension/timescaledb.control": No such file or directory
postgres=# CREATE EXTENSION IF NOT EXISTS timescaledb;
ERROR: could not open extension control file "/usr/share/postgresql/12/extension/timescaledb.control": No such file or directory
postgres=# CREATE EXTENSION IF NOT EXISTS timescaledb;
ERROR: could not open extension control file "/usr/share/postgresql/12/extension/timescaledb.control": No such file or directory
plpgsql |1.0| pg_catalog | PL/pgSQL procedural language
timescaledb |2.17.2| public | Enables scalable inserts and complex queries for time-series data(Community Edition)
(2 rows)
postgres=# CREATE EXTENSION IF NOT EXISTS timescaledb;
CREATE EXTENSION
postgres=# \dx
List of installed extensions
Name | Version | Schema | Description
-------------+---------+------------+---------------------------------------------------------------------------------------
plpgsql | 1.0 | pg_catalog | PL/pgSQL procedural language
timescaledb | 2.17.2 | public | Enables scalable inserts and complex queries for time-series data (Community Edition)
(2 rows)
postgres=# CREATE EXTENSION IF NOT EXISTS timescaledb;
CREATE EXTENSION
postgres=# \dx
List of installed extensions
Name | Version | Schema | Description
-------------+---------+------------+---------------------------------------------------------------------------------------
plpgsql | 1.0 | pg_catalog | PL/pgSQL procedural language
timescaledb | 2.17.2 | public | Enables scalable inserts and complex queries for time-series data (Community Edition)
(2 rows)
如果看到timescaledb 就表示成功了:
安装相关的组件之后,如果要在 django 中使用,还需要安装psycopg2,不建议安装psycopg2-binary因为安装这个东西,在 mac 下同样会爆上面的错误。psycopg2 需要编译安装,安装过程可能会提示找不到 ssl 库,通过brew info openssl 定位 ssl 库位置。
brew info openssl
==> openssl@3: stable 3.4.0 (bottled)
Cryptography and SSL/TLS Toolkit
https://openssl-library.org
Installed
/opt/homebrew/Cellar/openssl@3/3.4.0 (7,236 files, 33.4MB) *
Poured from bottle using the formulae.brew.sh API on 2024-11-22 at 09:36:14
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/o/openssl@3.rb
License: Apache-2.0
==> Dependencies
Required: ca-certificates ✔
==> Caveats
A CA file has been bootstrapped using certificates from the system
keychain. To add additional certificates, place .pem files in
/opt/homebrew/etc/openssl@3/certs
and run
/opt/homebrew/opt/openssl@3/bin/c_rehash
==> Analytics
install: 318,996 (30 days), 1,205,908 (90 days), 4,903,860 (365 days)
install-on-request: 39,060 (30 days), 168,471 (90 days), 637,515 (365 days)
build-error: 6,326 (30 days)
brew info openssl
==> openssl@3: stable 3.4.0 (bottled)
Cryptography and SSL/TLS Toolkit
https://openssl-library.org
Installed
/opt/homebrew/Cellar/openssl@3/3.4.0 (7,236 files, 33.4MB) *
Poured from bottle using the formulae.brew.sh API on 2024-11-22 at 09:36:14
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/o/openssl@3.rb
License: Apache-2.0
==> Dependencies
Required: ca-certificates ✔
==> Caveats
A CA file has been bootstrapped using certificates from the system
keychain. To add additional certificates, place .pem files in
/opt/homebrew/etc/openssl@3/certs
and run
/opt/homebrew/opt/openssl@3/bin/c_rehash
==> Analytics
install: 318,996 (30 days), 1,205,908 (90 days), 4,903,860 (365 days)
install-on-request: 39,060 (30 days), 168,471 (90 days), 637,515 (365 days)
build-error: 6,326 (30 days)
23 comments
咦,刚好看到你这篇文章,我在公司项目中准备用 influxDB,也是时序数据库,用户使用量比你这个大几倍,不知道对比如何,搜了一下
pg 的好处是支持关系型数据库的语法。influxDB 应该可以,我也没对比过。
嗯?mariadb 跟 mysql 是一个东西啊,各种意义上的。
瞎说,名字不一样~~
又搞新项目了?
瞎折腾而已 嘎嘎
这组深灰小背心主题图还蛮多的
嗯嗯
从封面看出,你有小肚子
哼 我要减掉小肚子
姐姐的照片都是谁帮忙拍的呀?是自己拍的吗?构图很不错,背景墙上的小卡片也很好地引导了从左到右的视线关注。
最近好像很多人都在说PostgreSQL,我之前也试过用Typecho+本地+PostgreSQL,估计数据量不大,也没能深入了解它的优劣。
写真馆 有专门的摄影师 不过有的图是ai扩展了一下 本来是竖屏的
的确不同数据库专注点也不一样 多了解下也没坏处
姐姐,看看这个数据库:https://duckdb.org/ 这个也不错欸。就是PHP没有官方的。
没见过 找时间看看
除了mssql和mysql,其他数据库统统没听说过。
嗯嗯,很多东西的确比较少用
mark一下。
时序优化。
我的博客一直用mariadb,一个mysql分支,还是有些区别。我很多都不懂,要学习呀。
mariadb 性能感觉也 ok,不过10 之后感觉变化很大,之前直接在nas 上装的 mariadb,结果升级到 11 还是 12 之后,变得特别卡。
后来又转到 mysql 了。
又来一个听都没听过的玩意
如果用不到其实无所谓哒
我觉得网站上最莫名其妙容易出问题的就是数据库。好好的跑着,然后莫名其妙就崩了。
嗯嗯是的 关键是有很多崩溃还不知道啥原因