doc-exports/docs/dws/dev/dws_04_0735.html
Lu, Huayi a24ca60074 DWS DEVELOPER 811 version
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Lu, Huayi <luhuayi@huawei.com>
Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
2023-01-19 13:37:49 +00:00

147 lines
13 KiB
HTML

<a name="EN-US_TOPIC_0000001098654716"></a><a name="EN-US_TOPIC_0000001098654716"></a>
<h1 class="topictitle1">PG_JOB_SINGLE</h1>
<div id="body1599815907173"><p id="EN-US_TOPIC_0000001098654716__p65865272020">PG_JOB_SINGLE displays job information about the current node.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001098654716__t9ec63a5df95b4f61ae3d9194bcb47d74" frame="border" border="1" rules="all"><caption><b>Table 1 </b>PG_JOB_SINGLE columns</caption><thead align="left"><tr id="EN-US_TOPIC_0000001098654716__en-us_topic_0059778581_row5106215531"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.2.4.1.1"><p id="EN-US_TOPIC_0000001098654716__a65781afeccb04be195fc89bfda9ad930">Name</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.2.4.1.2"><p id="EN-US_TOPIC_0000001098654716__ad4cced91bf064f95b1b0f2a1db21b3f4">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.2.2.4.1.3"><p id="EN-US_TOPIC_0000001098654716__en-us_topic_0059778581_p910651155317">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001098654716__r5160d4bf9fdb44749025e0995d999382"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001098654716__p48793336208">job_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001098654716__p1687803312012">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001098654716__p2876103362012">Job ID</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001098654716__r1a913116e97a4c88bb26769f05cea246"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001098654716__p1887517332207">current_postgres_pid</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001098654716__p19873163352016">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001098654716__p5851173319204">If the current job has been executed, the PostgreSQL thread ID of this job is recorded. The default value is <strong id="EN-US_TOPIC_0000001098654716__b195985011611">-1</strong>, indicating that the job has not yet been executed.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001098654716__row867424225114"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001098654716__p96749426511">log_user</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001098654716__p116741142105119">name</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001098654716__p36741842125110">User name of the job creator</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001098654716__row1034611462511"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001098654716__p13471546125120">priv_user</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001098654716__p12347146145114">name</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001098654716__p534794665112">User name of the job executor</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001098654716__row877584813512"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001098654716__p27751448175115">dbname</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001098654716__p977594814511">name</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001098654716__p2775204895114">Name of the database where the job is executed</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001098654716__row12186351195117"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001098654716__p018618511517">node_name</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001098654716__p518615510515">name</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001098654716__p17187125111511">CN node on which the job will be created and executed</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001098654716__row15386195305115"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001098654716__p4386105315110">job_status</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001098654716__p20386115313512">text</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001098654716__p438616538519">Status of the current job. The value range is <strong id="EN-US_TOPIC_0000001098654716__b867411321614">r</strong>, <strong id="EN-US_TOPIC_0000001098654716__b186795132163">s</strong>, <strong id="EN-US_TOPIC_0000001098654716__b967951321620">f</strong>, or <strong id="EN-US_TOPIC_0000001098654716__b1268091314167">d</strong>. The default value is <strong id="EN-US_TOPIC_0000001098654716__b19680161391616">s</strong>. The indications are as follows:</p>
<ul id="EN-US_TOPIC_0000001098654716__ul39973288289"><li id="EN-US_TOPIC_0000001098654716__li4997132813286">r=running</li><li id="EN-US_TOPIC_0000001098654716__li1499782852817">s=successfully finished</li><li id="EN-US_TOPIC_0000001098654716__li1099772819286">f=job failed</li><li id="EN-US_TOPIC_0000001098654716__li8998162815285">d=disable</li></ul>
<p id="EN-US_TOPIC_0000001098654716__p171931353145318">If a job fails to be executed for 16 consecutive times, <strong id="EN-US_TOPIC_0000001098654716__b160261519164">job_status</strong> is automatically set to <strong id="EN-US_TOPIC_0000001098654716__b1760213158168">d</strong>, and no more attempt will be made on this job.</p>
<div class="note" id="EN-US_TOPIC_0000001098654716__note81622539192"><span class="notetitle"> NOTE: </span><div class="notebody"><ul id="EN-US_TOPIC_0000001098654716__ul4961338132213"><li id="EN-US_TOPIC_0000001098654716__li174081043132214">Note: When you disable a scheduled task (by setting <strong id="EN-US_TOPIC_0000001098654716__b157026173304">job_queue_processes</strong> to <strong id="EN-US_TOPIC_0000001098654716__b11357161813168">0</strong>), the thread monitor the job execution is not started, and the <strong id="EN-US_TOPIC_0000001098654716__b9357131810167">job_status</strong> will not be updated. You can ignore the <strong id="EN-US_TOPIC_0000001098654716__b113571188160">job_status</strong>.</li><li id="EN-US_TOPIC_0000001098654716__li79611038132215">Only when the scheduled task function is enabled (that is, when <strong id="EN-US_TOPIC_0000001098654716__b586252081619">job_queue_processes</strong> is not <strong id="EN-US_TOPIC_0000001098654716__b128621720181611">0</strong>), the system updates the value of <strong id="EN-US_TOPIC_0000001098654716__b10862202041619">job_status</strong> based on the real-time job status.</li></ul>
</div></div>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001098654716__row15623155519515"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001098654716__p0623165513518">start_date</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001098654716__p12623135512511">timestamp without time zone</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001098654716__p962311557510">Start time of the first job execution, precise to millisecond</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001098654716__row183019574516"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001098654716__p198301257125111">next_run_date</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001098654716__p198301257125117">timestamp without time zone</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001098654716__p18830155710518">Scheduled time of the next job execution, accurate to millisecond</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001098654716__row17981205914518"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001098654716__p199811559135119">failure_count</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001098654716__p19811359115115">smallint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001098654716__p16981259195119">Number of times the job has started and failed. If a job fails to be executed for 16 consecutive times, no more attempt will be made on it.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001098654716__row196688235216"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001098654716__p12668122115211">interval</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001098654716__p116681527527">text</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001098654716__p1668228523">Job execution interval</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001098654716__row66813712521"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001098654716__p76807105211">last_start_date</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001098654716__p16897155217">timestamp without time zone</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001098654716__p96814765215">Start time of the last job execution, accurate to millisecond</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001098654716__row93756975215"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001098654716__p33755917521">last_end_date</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001098654716__p6375169195213">timestamp without time zone</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001098654716__p1737518975213">End time of the last job execution, accurate to millisecond</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001098654716__row576417118527"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001098654716__p97641112522">last_suc_date</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001098654716__p276410118524">timestamp without time zone</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001098654716__p376481175220">Start time of the last successful job execution, accurate to millisecond</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001098654716__row161158301564"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001098654716__p1611683013565">this_run_date</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001098654716__p14116173095619">timestamp without time zone</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001098654716__p21161030165615">Start time of the ongoing job execution, accurate to millisecond</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001098654716__row1036194611457"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001098654716__p123654616453">nspname</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001098654716__p3361546154515">name</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001098654716__p83664604511">Name of the namespace where a job is running</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001098654716__row1222074944516"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001098654716__p19220154917453">what</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001098654716__p42209496454">text</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001098654716__p18220549134511">Job content</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>