timescaledb - 在窗口中的 postgres db 中添加 Timescaledb 扩展找不到 timescaledb.control 错误
问题描述
在 Windows 中通过以下命令在 postgresql db 中添加 timescaledb 扩展。
命令:CREATE EXTENSION IF NOT EXISTS timescaledb;
错误:无法打开扩展控制文件“/usr/share/postgresql/9.5/extension/timescaledb.control”:没有这样的文件或目录
尝试再次为 postgresql 和 timescale db 进行设置,但没有发生。可以在路径“C:\Program Files\PostgreSQL\10\share\extension\timescaledb.control”处看到文件,以任何方式设置错误路径。
pg_config 的输出:
BINDIR = C:/PROGRA~1/POSTGR~1/10/bin
DOCDIR = C:/PROGRA~1/POSTGR~1/10/doc
HTMLDIR = C:/PROGRA~1/POSTGR~1/10/doc
INCLUDEDIR = C:/PROGRA~1/POSTGR~1/10/include
PKGINCLUDEDIR = C:/PROGRA~1/POSTGR~1/10/include
INCLUDEDIR-SERVER = C:/PROGRA~1/POSTGR~1/10/include/server
LIBDIR = C:/PROGRA~1/POSTGR~1/10/lib
PKGLIBDIR = C:/PROGRA~1/POSTGR~1/10/lib
LOCALEDIR = C:/PROGRA~1/POSTGR~1/10/share/locale
MANDIR = C:/Program Files/PostgreSQL/10/man
SHAREDIR = C:/PROGRA~1/POSTGR~1/10/share
SYSCONFDIR = C:/Program Files/PostgreSQL/10/etc
PGXS = C:/Program Files/PostgreSQL/10/lib/pgxs/src/makefiles/pgxs.mk
CONFIGURE = --enable-thread-safety --enable-nls --with-ldap --with-openssl --with-ossp-uuid --with-libxml --with-libxslt --with-icu --with-tcl --with-perl --with-python
CC = not recorded
CPPFLAGS = not recorded
CFLAGS = not recorded
CFLAGS_SL = not recorded
LDFLAGS = not recorded
LDFLAGS_EX = not recorded
LDFLAGS_SL = not recorded
LIBS = not recorded
VERSION = PostgreSQL 10.11
解决方案
推荐阅读
- java - 如何生成 4 个不重复数字的随机数
- couchdb - 如何使用过滤器从 couchdb 中删除文档?
- c# - 如何正确覆盖 System.Timers.Timer Elapsed Event
- navigation - SwiftUI NavigationLink 立即导航回来
- java - 由应用程序执行时的 Java Android Studio SQL ResultSet NullPointerException
- c# - C# 连接到系统 ODBC 数据源
- javascript - 我无法使用 html2canvas 和 jspdf 从 HTML 页面生成 PDF 文件
- git - zsh git 命令自动完成和文件名自动完成一起?
- javascript - 过滤嵌套在对象中的对象中的值
- javascript - 使用 eslint 详尽的deps 反应订阅/取消订阅的 useEffect 依赖项