greenplum遇到节点死锁问题

在针对一个不大的表格执行清空操作时,遇到了长时间执行且未返回结果的情况。网上搜索后,发现是遇到了死锁问题。

1. 可以在master节点,查询各进程并判断有可能是死锁的进程:

 

select gp_execution_dbid(), pid, relation::regclass, locktype, mode, granted
from gp_dist_random('pg_locks');

2. 查看具体什么语句持有的锁

select gp_execution_dbid() dbid,procpid,current_query
from gp_dist_random('pg_stat_activity')
where procpid in
(select pid from gp_dist_random('pg_locks') where locktype='relation' and mode='ExclusiveLock');

3.处理持有锁的pid

select pg_terminate_backend('procpid');

已发布

分类

来自

标签:

评论

《 “greenplum遇到节点死锁问题” 》 有 13 条评论

  1. buy cheap enclomiphene price in canada

    generic enclomiphene canadian no prescription

  2. commander kamagra sans ordonnance

    acheter générique kamagra canada

  3. discount androxal buy dublin

    androxal delivered cod fedex

  4. cheap dutasteride canada mail order

    buying dutasteride without recipe

  5. buying flexeril cyclobenzaprine purchase to canada

    purchase flexeril cyclobenzaprine generic free shipping

  6. buy gabapentin generic from canadian pharmacy

    discount gabapentin generic india

  7. canadian pharmacy fildena

    buying fildena generic equivalent buy

  8. online pharmacy usa itraconazole

    purchase itraconazole buy safely online

  9. ordering staxyn purchase online from canada

    order staxyn generic efficacy

  10. US pharmacies for avodart without rx

    discount avodart generic europe

  11. buy cheap xifaxan price prescription

    buy xifaxan generic pharmacy canada

  12. buy rifaximin generic is good

    how to buy rifaximin purchase from canada

  13. kamagra bez pナ册dpovト嫖i

    získejte zdarma vzorky kamagra online

回复 get avodart buy for cheap 取消回复

您的邮箱地址不会被公开。 必填项已用 * 标注