如何在Windows上使用pg_squeeze

问题描述 投票:0回答:1

我尝试在Windows上制作/ cmake pg_squeeze,但失败。

C:\ pg_squeeze-REL1_0_PG_10> cmake c:\ pg_squeeze-REL1_0_PG_10 CMake错误:源目录“ C:/ pg_squeeze-REL1_0_PG_10”不存在似乎包含CMakeLists.txt。指定使用--help或按CMake GUI上的帮助按钮。

在Windows上可以使用pg_squeeze吗?Postgresql 9.6及更高版本是否还有其他扩展名可以在Windows上进行常规数据库维护?

C:\ pg_squeeze-REL1_0_PG_10> cmake c:\ pg_squeeze-REL1_0_PG_10 CMake错误:源目录“ C:/ pg_squeeze-REL1_0_PG_10”不存在似乎包含CMakeLists.txt。指定使用--help或按CMake GUI上的帮助按钮。

postgresql postgresql-9.6
1个回答
0
投票
在Windows上进行常规数据库维护时,是否还有Postgresql 9.6及更高版本的其他扩展以在Windows上运行?
是,有pgcompacttable以下是使其在Windows上运行的方法:

0。)输入PostgreSQL的CLI

psql --username=postgres --dbname *your_db*

为该表启用扩展pgstattuple

CREATE EXTENSION pgstattuple;

1。)安装ActivePerl2.)在文本编辑器中打开pgcompacttable并查找替换getpwuid($<)getlogin()3.)SET /p PGPASSWORD="Enter password: "(其他变量如PGHOST,PGPORT,PGUSER对我不起作用)%SystemDrive%\perl64\bin\perl.exe pgcompacttable --dbname *your_db* -f --host 127.0.0.1 --port 5432 --user *your_user* >> pgcompacttable.log

© www.soinside.com 2019 - 2024. All rights reserved.