Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/postgresql/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/csharp-4.0/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Postgresql 错误:无法在CURL GET请求中调用postgres函数_Postgresql_Curl_Postgis_Postgrest - Fatal编程技术网

Postgresql 错误:无法在CURL GET请求中调用postgres函数

Postgresql 错误:无法在CURL GET请求中调用postgres函数,postgresql,curl,postgis,postgrest,Postgresql,Curl,Postgis,Postgrest,我在远程PostgreSQL/PostGIS数据库中有一个自定义函数,它根据给定的坐标(CRS中的lon、lat:4326)查找最近的线字符串。我在Windows10(x64机器)上,使用PostgREST API使我的curl请求与远程pg数据库通信 curl命令是: curl "http://my_host:my_port/my_table?select=get_nearest_linestring(9.18233279,45.47184631)" 我得到一个错误: {

我在远程PostgreSQL/PostGIS数据库中有一个自定义函数,它根据给定的坐标(CRS中的lon、lat:4326)查找最近的线字符串。我在Windows10(x64机器)上,使用PostgREST API使我的curl请求与远程pg数据库通信

curl命令是:

curl "http://my_host:my_port/my_table?select=get_nearest_linestring(9.18233279,45.47184631)"
我得到一个错误:

{"hint":null,"details":null,"code":"42703","message":"column my_table.get_nearest_linestring does not exist"}

我可以看到一个相关的问题,但我没有得到任何提示。有人能帮我理解我做错了什么吗?

不是博士后专家,但我想这就是你要找的:get\u nearest\u linestring的参数是什么,你能分享函数签名吗?