forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: Lu, Huayi <luhuayi@huawei.com> Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
186 lines
16 KiB
HTML
186 lines
16 KiB
HTML
<a name="EN-US_TOPIC_0000001233883225"></a><a name="EN-US_TOPIC_0000001233883225"></a>
|
|
|
|
<h1 class="topictitle1">PGXC_DEADLOCK</h1>
|
|
<div id="body0000001127455471"><p id="EN-US_TOPIC_0000001233883225__p8060118"><strong id="EN-US_TOPIC_0000001233883225__b1847593143">PGXC_DEADLOCK</strong> displays lock wait information generated due to distributed deadlocks.</p>
|
|
<p id="EN-US_TOPIC_0000001233883225__p101754205920">Currently, <strong id="EN-US_TOPIC_0000001233883225__b16136143712199">PGXC_DEADLOCK</strong> collects only lock wait information about locks whose <strong id="EN-US_TOPIC_0000001233883225__b1213733761916">locktype</strong> is <strong id="EN-US_TOPIC_0000001233883225__b1313773717193">relation</strong>, <strong id="EN-US_TOPIC_0000001233883225__b1813712378195">partition</strong>, <strong id="EN-US_TOPIC_0000001233883225__b141381837161914">page</strong>, <strong id="EN-US_TOPIC_0000001233883225__b19138173701914">tuple</strong>, or <strong id="EN-US_TOPIC_0000001233883225__b15138113711912">transactionid</strong>.</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001233883225__table691619406467" frame="border" border="1" rules="all"><caption><b>Table 1 </b>PGXC_DEADLOCK columns</caption><thead align="left"><tr id="EN-US_TOPIC_0000001233883225__row5917440194617"><th align="left" class="cellrowborder" valign="top" width="17.7017701770177%" id="mcps1.3.3.2.4.1.1"><p id="EN-US_TOPIC_0000001233883225__p1091794094612">Name</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="21.972197219721973%" id="mcps1.3.3.2.4.1.2"><p id="EN-US_TOPIC_0000001233883225__p3917440164614">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60.32603260326033%" id="mcps1.3.3.2.4.1.3"><p id="EN-US_TOPIC_0000001233883225__p2917104024610">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001233883225__row139171140114617"><td class="cellrowborder" valign="top" width="17.7017701770177%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001233883225__p18917194094616">locktype</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.972197219721973%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001233883225__p14917240104614">text</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.32603260326033%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001233883225__p4917140134610">Type of the locked object</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233883225__row19917740144616"><td class="cellrowborder" valign="top" width="17.7017701770177%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001233883225__p11917740134616">nodename</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.972197219721973%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001233883225__p16917144034617">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.32603260326033%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001233883225__p789572552810">Name of the node where the locked object resides</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233883225__row691704019466"><td class="cellrowborder" valign="top" width="17.7017701770177%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001233883225__p10917240154616">dbname</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.972197219721973%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001233883225__p14917164011468">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.32603260326033%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001233883225__p139171940184619">Name of the database where the locked object resides The value is <strong id="EN-US_TOPIC_0000001233883225__b10331654112016">NULL</strong> if the locked object is a transaction.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233883225__row1391724011467"><td class="cellrowborder" valign="top" width="17.7017701770177%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001233883225__p11917144018467">nspname</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.972197219721973%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001233883225__p1491794019465">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.32603260326033%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001233883225__p17917134019469">Name of the namespace of the locked object</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233883225__row159172402465"><td class="cellrowborder" valign="top" width="17.7017701770177%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001233883225__p291774018467">relname</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.972197219721973%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001233883225__p39171140114610">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.32603260326033%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001233883225__p69171240114614">Name of the relation targeted by the lock The value is <strong id="EN-US_TOPIC_0000001233883225__b1141161192110">NULL</strong> if the object is not a relation or part of a relation.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233883225__row891816406466"><td class="cellrowborder" valign="top" width="17.7017701770177%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001233883225__p191844012463">partname</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.972197219721973%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001233883225__p6918154012461">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.32603260326033%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001233883225__p79184402461">Name of the partition targeted by the lock The value is <strong id="EN-US_TOPIC_0000001233883225__b155121026162114">NULL</strong> if the locked object is not a partition.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233883225__row10918204010467"><td class="cellrowborder" valign="top" width="17.7017701770177%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001233883225__p791819401465">page</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.972197219721973%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001233883225__p2918040104618">integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.32603260326033%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001233883225__p12918124010463">Number of the page targeted by the lock The value is <strong id="EN-US_TOPIC_0000001233883225__b79791652102113">NULL</strong> if the locked object is neither a page nor a tuple.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233883225__row159181240124616"><td class="cellrowborder" valign="top" width="17.7017701770177%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001233883225__p169181340114614">tuple</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.972197219721973%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001233883225__p15918040124618">smallint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.32603260326033%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001233883225__p20918154010465">Number of the tuple targeted by the lock The value is <strong id="EN-US_TOPIC_0000001233883225__b153281181226">NULL</strong> if the locked object is not a tuple.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233883225__row89181740174619"><td class="cellrowborder" valign="top" width="17.7017701770177%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001233883225__p14918140114620">transactionid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.972197219721973%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001233883225__p199183406465">xid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.32603260326033%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001233883225__p79188409466">ID of the transaction targeted by the lock The value is <strong id="EN-US_TOPIC_0000001233883225__b654883142218">NULL</strong> if the locked object is not a transaction.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233883225__row119181740114611"><td class="cellrowborder" valign="top" width="17.7017701770177%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001233883225__p4918240194611">waitusername</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.972197219721973%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001233883225__p59187406468">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.32603260326033%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001233883225__p129181840204612">Name of the user who waits for the lock</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233883225__row791812408468"><td class="cellrowborder" valign="top" width="17.7017701770177%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001233883225__p15918940124610">waitgxid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.972197219721973%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001233883225__p5918204014611">xid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.32603260326033%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001233883225__p14918134017466">ID of the transaction that waits for the lock</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233883225__row209181640174620"><td class="cellrowborder" valign="top" width="17.7017701770177%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001233883225__p129183408469">waitxactstart</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.972197219721973%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001233883225__p2091894018466">timestamp with time zone</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.32603260326033%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001233883225__p99181140174615">Start time of the transaction that waits for the lock</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233883225__row09185404461"><td class="cellrowborder" valign="top" width="17.7017701770177%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001233883225__p1918174094620">waitqueryid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.972197219721973%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001233883225__p19918144011460">bigint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.32603260326033%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001233883225__p791814019467">Latest query ID of the thread that waits for the lock</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233883225__row791814013467"><td class="cellrowborder" valign="top" width="17.7017701770177%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001233883225__p18919174018463">waitquery</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.972197219721973%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001233883225__p159191140114615">text</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.32603260326033%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001233883225__p1391917403465">Latest query statement of the thread that waits for the lock</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233883225__row20919194018468"><td class="cellrowborder" valign="top" width="17.7017701770177%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001233883225__p17919194019462">waitpid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.972197219721973%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001233883225__p1591954014620">bigint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.32603260326033%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001233883225__p79196404469">ID of the thread that waits for the lock</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233883225__row18919940184611"><td class="cellrowborder" valign="top" width="17.7017701770177%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001233883225__p091914012462">waitmode</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.972197219721973%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001233883225__p391954094610">text</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.32603260326033%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001233883225__p7919194015468">Mode of the waited lock</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233883225__row192084004616"><td class="cellrowborder" valign="top" width="17.7017701770177%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001233883225__p7920340154620">holdusername</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.972197219721973%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001233883225__p109201240114610">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.32603260326033%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001233883225__p1892018409466">Name of the user who holds the lock</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233883225__row9173161965711"><td class="cellrowborder" valign="top" width="17.7017701770177%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001233883225__p19174191945718">holdgxid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.972197219721973%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001233883225__p1717471955718">xid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.32603260326033%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001233883225__p3174119175717">ID of the transaction that holds the lock</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233883225__row4261152312570"><td class="cellrowborder" valign="top" width="17.7017701770177%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001233883225__p102613235579">holdxactstart</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.972197219721973%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001233883225__p15261142315573">timestamp with time zone</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.32603260326033%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001233883225__p6261122313574">Start time of the transaction that holds the lock</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233883225__row8401152695710"><td class="cellrowborder" valign="top" width="17.7017701770177%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001233883225__p2401226195717">holdqueryid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.972197219721973%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001233883225__p20401426135717">bigint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.32603260326033%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001233883225__p2401112611578">Latest query ID of the thread that holds the lock</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233883225__row28081529185717"><td class="cellrowborder" valign="top" width="17.7017701770177%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001233883225__p580932935715">holdquery</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.972197219721973%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001233883225__p1480942975719">text</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.32603260326033%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001233883225__p13467149441">Latest query statement of the thread that holds the lock</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233883225__row19763032115711"><td class="cellrowborder" valign="top" width="17.7017701770177%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001233883225__p1676323217574">holdpid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.972197219721973%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001233883225__p276383265717">bigint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.32603260326033%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001233883225__p17763143218574">ID of the thread that holds the lock</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233883225__row20883123916578"><td class="cellrowborder" valign="top" width="17.7017701770177%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001233883225__p8884039105711">holdmode</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.972197219721973%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001233883225__p1288412397578">text</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.32603260326033%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001233883225__p18884123915578">Mode of the held lock</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_04_0639.html">System Views</a></div>
|
|
</div>
|
|
</div>
|
|
|