Apache Age 中 MODULE_PATHNAME 的位置是什么?

huangapple go评论50阅读模式
英文:

What is the location of the MODULE_PATHNAME in Apache Age?

问题

$libdir 是在创建 PostgreSQL 扩展时常用的,而 Apache Age 则使用 MODULE_PATHNAME 变量来存储和检索已编译的 C 代码。

这个变量在 age.control 文件中声明如下:

default_version = '1.2.0'
comment = 'AGE database extension'
module_pathname = '$libdir/age'

然而,我无法在 $libdir 中找到名为 age 的文件夹(即 $libdir/age)。

英文:

While $libdir is commonly used when creating PostgreSQL extensions, Apache Age utilizes the MODULE_PATHNAME variable to store and retrieve compiled C code.

CREATE FUNCTION ag_catalog.create_graph(graph_name name)
RETURNS void
LANGUAGE c
AS 'MODULE_PATHNAME';

This variable is declared in the age.control file as follows:

default_version = '1.2.0'
comment = 'AGE database extension'
module_pathname = '$libdir/age'

However, I could not find a folder named age in $libdir (i.e., $libdir/age).

答案1

得分: 1

应该位于您安装 PostgreSQL 时的 lib 目录中,文件名为 age.so。在安装过程中,您使用 ./configure --prefix={路径} 命令时指定了安装 PostgreSQL 的路径。通常情况下,它存储在 /usr/local/ 中,但具体位置取决于您指定的路径。

Apache Age 中 MODULE_PATHNAME 的位置是什么?

英文:

It should be in the lib directory where you have installed PostgreSQL as a file named age.so. The path you have installed PostgreSQL is specified when you used the ./configure --prefix={path} command during the installation process. It is commonly stored in /usr/local/ but that will depend on where you have specified the path to be.

Apache Age 中 MODULE_PATHNAME 的位置是什么?

huangapple
  • 本文由 发表于 2023年3月4日 03:10:54
  • 转载请务必保留本文链接:https://go.coder-hub.com/75631003.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定