开发者社区> 问答> 正文

求助,在pg 11 的 procedure中 如果 使用 mysql_fdw外部表导致崩溃。

求助,在pg 11 的 procedure中 如果 使用 mysql_fdw外部表导致崩溃。
我们有个procedure,使用到了 mysql_fdw外部表,这个 procedure 被重复调用几次后,(在我们这台PG上)第7次调用,产生"An I/O error occurred while sending to the backend.",在 server的log中也产生下下面的错误输出:
server process (PID 6275) was terminated by signal 11: Segmentation fault","Failed process was running: call xxx.sp_xxx_xx('2018-12-20','2018-12-21')",,,,,,,"LogChildExit, postmaster.c:3579.

这导致了整个数据库的重启“The postmaster has commanded this server process to roll back the current transaction and exit”。

请问大家,有没有遇到过这种情况,如果这个是BUG的化,有没有修复方法?

我们手动 重复执行 对应的SQL,重复多次,不会出现这个问题。使用DO 块执行多次也不会出现,就是 在 PROCEDURE中 调用的化,会出现这个问题。
本问题来自云栖社区【PostgreSQL技术进阶社群】。https://yq.aliyun.com/articles/690084 点击链接欢迎加入社区大社群。

展开
收起
游客886 2019-04-25 17:09:33 2015 0
0 条回答
写回答
取消 提交回答
问答排行榜
最热
最新

相关电子书

更多
PostgresChina2018_杨杰_PostgreSQL-Flashback_Query实现与介绍 立即下载
SQL Sever迁移PG经验 立即下载
PolarDB NL2SQL: 帮助您写出准确、优化的SQL 立即下载