首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用--禁用线程-安全选项构建Postgres的影响是什么?

使用--禁用线程-安全选项构建Postgres的影响是什么?
EN

Database Administration用户
提问于 2014-07-31 03:22:04
回答 1查看 929关注 0票数 2

我是数据库领域的新手。最近,我一直试图在AIX6.1上安装Postgres 9.3.4。当我使用配置命令构建代码时,遇到了以下错误:

检查所需库函数的线程安全性.不是

配置:错误:线程测试程序失败

这个平台不是线程安全的。检查文件'config.log‘或编译

并运行src/test/线程/线程_test,确切的原因是。

使用--禁用-线程安全来禁用线程安全。

我只有在使用-禁用线程安全选项后才能成功编译.因此,我想知道使用这个选项对数据库可靠性有什么影响。在使用此选项的数据库方面,“客户端库”意味着什么?

我还想知道如何编译thread_test.c并手动运行它。手册上说:

代码语言:javascript
复制
     - run "configure" 

代码语言:javascript
复制
     - compile the main source tree

代码语言:javascript
复制
     - compile and run this program

但我没有成功地编译它。

*编辑:

下面是我编译thread_test.c的步骤:

  1. 我首先使用--禁用线程-安全选项进行配置,以获得源树。

  1. 然后,在构建目录中,我运行"gmake“来编译主源树。

  1. 完成后,我移到src/test/线程文件夹中,并尝试运行"gmake“。

我发现了一个错误:

代码语言:javascript
复制
`gmake: *** No rule to make target `thread_test.o', needed by `thread_test'.  Stop.

如果我运行"make",我会遇到许多这样的错误:

代码语言:javascript
复制
"../../../src/Makefile.global", line 45: make: Dependency line needs colon or double colon operator.<br>
"../../../src/Makefile.global", line 48: make: Dependency line needs colon or double colon operator.<br>
"../../../src/Makefile.global", line 52: make: Dependency line needs colon or double colon operator.<br>
"../../../src/Makefile.global", line 72: make: Dependency line needs colon or double colon operator.<br>
"../../../src/Makefile.global", line 84: make: Dependency line needs colon or double colon operator.<br>
"../../../src/Makefile.global", line 85: make: Dependency line needs colon or double colon operator.<br>
"../../../src/Makefile.global", line 87: make: Dependency line needs colon or double colon operator.<br>
"../../../src/Makefile.global", line 88: make: Dependency line needs colon or double colon operator.<br>
"../../../src/Makefile.global", line 91: make: Dependency line needs colon or double colon operator.<br>
make: Equal sign not found in macro substitution.<br>

我可能做错了什么,here...Can,有人愿意指出我在编译src/test/线程/线程_test.c文件时的错误吗?

谢谢你对我的耐心。:)

EN

回答 1

Database Administration用户

回答已采纳

发布于 2014-07-31 05:30:36

禁用线程安全将意味着libpq不能安全地用于多线程应用程序,除非应用程序非常小心地只使用单个线程与其交互。

对于大多数应用程序来说,这一点都不值得关注。

票数 3
EN
页面原文内容由Database Administration提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://dba.stackexchange.com/questions/72811

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档