英文:
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/
中,但具体位置取决于您指定的路径。
英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论