简体   繁体   English

为什么PostgreSQL的shell向我显示了一个不同的OS版本而不是我的真实操作系统?

[英]Why does PostgreSQL's shell shows me a different OS version instead of my real operating system?

When I execute the following command: 当我执行以下命令时:

SELECT version();

I get: 我得到:

PostgreSQL 9.6.3 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-16), 64-bit

What does Red Hat 4.4.7-16 means? Red Hat 4.4.7-16是什么意思? I am running PostgreSQL on Debian 9 so, why this shows me Red Hat instead? 我在Debian 9上运行PostgreSQL,为什么却显示Red Hat?

It does not report your OS, but the software it was compiled with, ie GCC compiler version 4.4.7. 报告您的操作系统,但它的软件用,即GCC编译器版本4.4.7编译。 More specifically: 4.4.7-16 (update 16) on Red Hat OS. 更具体地说:在Red Hat OS上为4.4.7-16(更新16)。

Your are running on x86_64-pc-linux-gnu (that is Debian 9 I suspect). 您正在x86_64-pc-linux-gnu上运行(我怀疑是Debian 9)。 See uname -a . 参见uname -a

Just checked one of our servers (Debian 8): 刚刚检查了我们的一台服务器(Debian 8):

PostgreSQL 9.6.4 on x86_64-pc-linux-gnu, compiled by gcc (Debian 4.9.2-10) 4.9.2, 64-bit

So, the Debian version should be built on Debian. 因此,Debian版本应该建立在Debian之上。 See comment tadman. 参见评论塔德曼。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM