How do I interrupt a RPostgresql query in R

佐手、 提交于 2019-12-06 02:42:30

You can try to connect to Postgres with psql look for your query in select * from pg_stat_activity and then use select pg_cancel_backend(long_query_pid) to cancel the query.

Or you can use this queries inside R.

Use RPostgres. It fetches the data a row at a time, so you can easily interrupt it at any point.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!