1

我想为我的项目使用 Fhirbase api,我参考http://fhirbase.github.io/installation.html(本地)这个链接来安装 fhirbase 服务器并按照文档中给出的所有步骤,

但是当我尝试执行第一个 api SELECT fhir_create_storage('{"resourceType": "Patient"}'); 它给了我错误,例如,

ERROR: function fhir_create_storage(unknown) does not exist
LINE 1: SELECT fhir_create_storage('{"resourceType": "Patient"}');
^
HINT: No function matches the given name and argument types. You might need to add explicit type casts.

我该如何解决?

4

1 回答 1

1

你必须通过 . 来初始化 plv8 机器SET plv8.start_proc = 'plv8_init';。这应该在新连接上完成,因此重新连接并作为第一个语句执行此语句或将其放在 postgresql.conf 中。http://pgxn.org/dist/plv8/doc/plv8.html#Start-up.procedure

于 2016-09-22T13:58:48.530 回答