Files
doc-exports/docs/dws/dev/dws_04_0796.html
luhuayi 177cd61a57 DWS DEVG 910.211 version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: luhuayi <luhuayi@huawei.com>
Co-committed-by: luhuayi <luhuayi@huawei.com>
2025-05-05 07:44:03 +00:00

124 lines
10 KiB
HTML

<a name="EN-US_TOPIC_0000001764650672"></a><a name="EN-US_TOPIC_0000001764650672"></a>
<h1 class="topictitle1">PGXC_BULKLOAD_STATISTICS</h1>
<div id="body0000001135750917"><p id="EN-US_TOPIC_0000001764650672__p2995116201"><strong id="EN-US_TOPIC_0000001764650672__b1646625219274">PGXC_BULKLOAD_STATISTICS</strong> displays real-time statistics about service execution, such as GDS, COPY, and \COPY, on a CN. This view summarizes the real-time execution status of import and export services that are being executed on each node in the current cluster. In this way, you can monitor the real-time progress of import and export services and locate performance problems.</p>
<p id="EN-US_TOPIC_0000001764650672__p8060118">Columns in <strong id="EN-US_TOPIC_0000001764650672__b853018388111">PGXC_BULKLOAD_STATISTICS</strong> are the same as those in <strong id="EN-US_TOPIC_0000001764650672__b1700941201117">PG_BULKLOAD_STATISTICS</strong>. This is because <strong id="EN-US_TOPIC_0000001764650672__b201951550121120">PGXC_BULKLOAD_STATISTICS</strong> is essentially the summary result of querying <strong id="EN-US_TOPIC_0000001764650672__b974811151218">PG_BULKLOAD_STATISTICS</strong> on each node in the cluster.</p>
<p id="EN-US_TOPIC_0000001764650672__p12221064549">This view is accessible only to users with system administrators rights.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001764650672__table158732593611" frame="border" border="1" rules="all"><caption><b>Table 1 </b>PGXC_BULKLOAD_STATISTICS columns</caption><tbody><tr id="EN-US_TOPIC_0000001764650672__row2936459564"><td class="cellrowborder" valign="top" width="21.682168216821683%"><p id="EN-US_TOPIC_0000001764650672__p16936059265"><strong id="EN-US_TOPIC_0000001764650672__b103318810128">Name</strong></p>
</td>
<td class="cellrowborder" valign="top" width="27.602760276027606%"><p id="EN-US_TOPIC_0000001764650672__p19361459469"><strong id="EN-US_TOPIC_0000001764650672__b198621486122">Type</strong></p>
</td>
<td class="cellrowborder" valign="top" width="50.71507150715071%"><p id="EN-US_TOPIC_0000001764650672__p49361059864"><strong id="EN-US_TOPIC_0000001764650672__b17738179151219">Description</strong></p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764650672__row14936159365"><td class="cellrowborder" valign="top" width="21.682168216821683%"><p id="EN-US_TOPIC_0000001764650672__p1293611591360">node_name</p>
</td>
<td class="cellrowborder" valign="top" width="27.602760276027606%"><p id="EN-US_TOPIC_0000001764650672__p1593615591669">Text</p>
</td>
<td class="cellrowborder" valign="top" width="50.71507150715071%"><p id="EN-US_TOPIC_0000001764650672__p109365591364">Node name</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764650672__row179375598614"><td class="cellrowborder" valign="top" width="21.682168216821683%"><p id="EN-US_TOPIC_0000001764650672__p9937759460">db_name</p>
</td>
<td class="cellrowborder" valign="top" width="27.602760276027606%"><p id="EN-US_TOPIC_0000001764650672__p993713591465">Text</p>
</td>
<td class="cellrowborder" valign="top" width="50.71507150715071%"><p id="EN-US_TOPIC_0000001764650672__p159377591662">Database name</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764650672__row593720596613"><td class="cellrowborder" valign="top" width="21.682168216821683%"><p id="EN-US_TOPIC_0000001764650672__p1393795914614">query_id</p>
</td>
<td class="cellrowborder" valign="top" width="27.602760276027606%"><p id="EN-US_TOPIC_0000001764650672__p15937165913618">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="50.71507150715071%"><p id="EN-US_TOPIC_0000001764650672__p179375598620">Query ID. It is equivalent to <strong id="EN-US_TOPIC_0000001764650672__b1885620184123">debug_query_id</strong>.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764650672__row7937185911610"><td class="cellrowborder" valign="top" width="21.682168216821683%"><p id="EN-US_TOPIC_0000001764650672__p139373591162">tid</p>
</td>
<td class="cellrowborder" valign="top" width="27.602760276027606%"><p id="EN-US_TOPIC_0000001764650672__p693717591568">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="50.71507150715071%"><p id="EN-US_TOPIC_0000001764650672__p9937559862">ID of the current thread</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764650672__row2093775919616"><td class="cellrowborder" valign="top" width="21.682168216821683%"><p id="EN-US_TOPIC_0000001764650672__p7937145914610">lwtid</p>
</td>
<td class="cellrowborder" valign="top" width="27.602760276027606%"><p id="EN-US_TOPIC_0000001764650672__p1693719596614">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="50.71507150715071%"><p id="EN-US_TOPIC_0000001764650672__p18937175918613">Lightweight thread ID</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764650672__row493745917613"><td class="cellrowborder" valign="top" width="21.682168216821683%"><p id="EN-US_TOPIC_0000001764650672__p293716591163">session_id</p>
</td>
<td class="cellrowborder" valign="top" width="27.602760276027606%"><p id="EN-US_TOPIC_0000001764650672__p119372591664">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="50.71507150715071%"><p id="EN-US_TOPIC_0000001764650672__p993765912612">GDS session ID</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764650672__row793716591261"><td class="cellrowborder" valign="top" width="21.682168216821683%"><p id="EN-US_TOPIC_0000001764650672__p1937359262">direction</p>
</td>
<td class="cellrowborder" valign="top" width="27.602760276027606%"><p id="EN-US_TOPIC_0000001764650672__p29378591964">Text</p>
</td>
<td class="cellrowborder" valign="top" width="50.71507150715071%"><p id="EN-US_TOPIC_0000001764650672__p4937105918618">Service type. The options are <strong id="EN-US_TOPIC_0000001764650672__b28267573121">gds to file</strong>, <strong id="EN-US_TOPIC_0000001764650672__b6832175719125">gds from file</strong>, <strong id="EN-US_TOPIC_0000001764650672__b78328572121">gds to pipe</strong>, <strong id="EN-US_TOPIC_0000001764650672__b2083315791217">gds from pipe</strong>, <strong id="EN-US_TOPIC_0000001764650672__b4833155711129">copy from</strong>, and <strong id="EN-US_TOPIC_0000001764650672__b1183345715126">copy to</strong>.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764650672__row8937105920618"><td class="cellrowborder" valign="top" width="21.682168216821683%"><p id="EN-US_TOPIC_0000001764650672__p199372059661">query</p>
</td>
<td class="cellrowborder" valign="top" width="27.602760276027606%"><p id="EN-US_TOPIC_0000001764650672__p19371659863">Text</p>
</td>
<td class="cellrowborder" valign="top" width="50.71507150715071%"><p id="EN-US_TOPIC_0000001764650672__p39371059661">Query statement</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764650672__row1993710599617"><td class="cellrowborder" valign="top" width="21.682168216821683%"><p id="EN-US_TOPIC_0000001764650672__p1593710591169">address</p>
</td>
<td class="cellrowborder" valign="top" width="27.602760276027606%"><p id="EN-US_TOPIC_0000001764650672__p89378591617">Text</p>
</td>
<td class="cellrowborder" valign="top" width="50.71507150715071%"><p id="EN-US_TOPIC_0000001764650672__p1093712591167">Location of the foreign table used for data import and export</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764650672__row193716595618"><td class="cellrowborder" valign="top" width="21.682168216821683%"><p id="EN-US_TOPIC_0000001764650672__p99370593615">query_start</p>
</td>
<td class="cellrowborder" valign="top" width="27.602760276027606%"><p id="EN-US_TOPIC_0000001764650672__p209381359165">Timestamp with time zone</p>
</td>
<td class="cellrowborder" valign="top" width="50.71507150715071%"><p id="EN-US_TOPIC_0000001764650672__p139381259665">Start time of data import or export</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764650672__row169382591365"><td class="cellrowborder" valign="top" width="21.682168216821683%"><p id="EN-US_TOPIC_0000001764650672__p109386594616">total_bytes</p>
</td>
<td class="cellrowborder" valign="top" width="27.602760276027606%"><p id="EN-US_TOPIC_0000001764650672__p1293835910619">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="50.71507150715071%"><p id="EN-US_TOPIC_0000001764650672__p1645410493516">Total size of data to be processed</p>
<p id="EN-US_TOPIC_0000001764650672__p1531912211841">This parameter is specified only when a GDS common file is to be imported and the record in the row comes from a CN. Otherwise, left this parameter unspecified.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764650672__row093865911616"><td class="cellrowborder" valign="top" width="21.682168216821683%"><p id="EN-US_TOPIC_0000001764650672__p159384591161">phase</p>
</td>
<td class="cellrowborder" valign="top" width="27.602760276027606%"><p id="EN-US_TOPIC_0000001764650672__p693818599614">Text</p>
</td>
<td class="cellrowborder" valign="top" width="50.71507150715071%"><p id="EN-US_TOPIC_0000001764650672__p593855914614">Current phase. The options are <strong id="EN-US_TOPIC_0000001764650672__b0794123161416">INITIALIZING</strong>, <strong id="EN-US_TOPIC_0000001764650672__b425122781414">TRANSFER_DATA</strong>, and <strong id="EN-US_TOPIC_0000001764650672__b8355143011144">RELEASE_RESOURCE</strong>.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764650672__row149381059160"><td class="cellrowborder" valign="top" width="21.682168216821683%"><p id="EN-US_TOPIC_0000001764650672__p1938559467">done_lines</p>
</td>
<td class="cellrowborder" valign="top" width="27.602760276027606%"><p id="EN-US_TOPIC_0000001764650672__p493811595617">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="50.71507150715071%"><p id="EN-US_TOPIC_0000001764650672__p10938105912619">Number of lines that have been transferred</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764650672__row8938135917618"><td class="cellrowborder" valign="top" width="21.682168216821683%"><p id="EN-US_TOPIC_0000001764650672__p14938125913618">done_bytes</p>
</td>
<td class="cellrowborder" valign="top" width="27.602760276027606%"><p id="EN-US_TOPIC_0000001764650672__p1793865919613">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="50.71507150715071%"><p id="EN-US_TOPIC_0000001764650672__p9938135920616">Number of bytes that have been transferred</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>