当前位置:网站首页>Postgresql10 process
Postgresql10 process
2022-06-11 22:55:00 【m0_ thirty-seven million two hundred and ninety-four thousand f】
pg process
postgres: checkpointer process
postgres: writer process
postgres: wal writer process
postgres: autovacuum launcher process
postgres: stats collector process
postgres: bgworker: logical replication launcher
postgres: {user} db 127.0.0.1(pid) idle
postgres: {user} default 127.0.0.1(pid) idle
pg query analysis
main.c main
postmaster.c PostmasterMain
postmaster.c ServerLoop
postmaster.c BackendStartup
postmaster.c BackendRun
postgres.c PostgresMain
postgres.c exec_simple_query
pquery.c PortalRun
pquery.c PortalRunMulti
pquery.c ProcessQuery
ProcessQuery(PlannedStmt *plan,
const char *sourceText,
ParamListInfo params,
QueryEnvironment *queryEnv,
DestReceiver *dest,
char *completionTag)
{
QueryDesc *queryDesc;
queryDesc = CreateQueryDesc(plan, sourceText,
GetActiveSnapshot(), InvalidSnapshot,
dest, params, queryEnv, 0);
// Generate execution plan
ExecutorStart(queryDesc, 0);
// Implementation plan
ExecutorRun(queryDesc, ForwardScanDirection, 0L, true);
/*
* Build command completion status string, if caller wants one.
*/
if (completionTag)
{
Oid lastOid;
switch (queryDesc->operation)
{
case CMD_SELECT:
snprintf(completionTag, COMPLETION_TAG_BUFSIZE,
"SELECT " UINT64_FORMAT,
queryDesc->estate->es_processed);
break;
case CMD_INSERT:
if (queryDesc->estate->es_processed == 1)
lastOid = queryDesc->estate->es_lastoid;
else
lastOid = InvalidOid;
snprintf(completionTag, COMPLETION_TAG_BUFSIZE,
"INSERT %u " UINT64_FORMAT,
lastOid, queryDesc->estate->es_processed);
break;
case CMD_UPDATE:
snprintf(completionTag, COMPLETION_TAG_BUFSIZE,
"UPDATE " UINT64_FORMAT,
queryDesc->estate->es_processed);
break;
case CMD_DELETE:
snprintf(completionTag, COMPLETION_TAG_BUFSIZE,
"DELETE " UINT64_FORMAT,
queryDesc->estate->es_processed);
break;
default:
strcpy(completionTag, "???");
break;
}
}
// Release resources
ExecutorFinish(queryDesc);
ExecutorEnd(queryDesc);
FreeQueryDesc(queryDesc);
}
Writing data
nodeModifyTable.c ExecModifyTable
nodeModifyTable.c ExecInsert
heapam.c heap_insert
write in heap
边栏推荐
- 习题6-2 使用函数求特殊a串数列和 (20 分)
- [JS] 1347- high level usage of localstorage
- Deconstruction of volatile | community essay solicitation
- Daily question -1317 Converts an integer to the sum of two zero free integers
- Implementation of sequencelist sequence table
- [solution] solution to asymmetric and abnormal transformation caused by modifying the transform information of sub objects
- [nodejs] electron installation
- Read dense visual slam for rgb-d cameras
- Using the command line to call shell in unity
- How to make scripts executable anywhere
猜你喜欢

【Day2 文献精读】Time in the mind: Using space to think about time

PHP+MYSQL图书管理系统(课设)

Mobile terminal - picture timeline of swipe effect

想做钢铁侠?听说很多大佬都是用它入门的

【Day4 文献精读】Space–time interdependence: Evidence against asymmetric mapping between time and space

NLP - fastText

华为设备配置HoVPN
![Tensorflow [actual Google deep learning framework] uses HDF5 to process large data sets with tflearn](/img/d0/586b9f09dc19d5aaf8ccca687b7b10.jpg)
Tensorflow [actual Google deep learning framework] uses HDF5 to process large data sets with tflearn
![[solution] solution to asymmetric and abnormal transformation caused by modifying the transform information of sub objects](/img/52/7e741154e4d6e61c5df7e8701ab177.png)
[solution] solution to asymmetric and abnormal transformation caused by modifying the transform information of sub objects

Why can't Google search page infinite?
随机推荐
Cloudcompare source code analysis: read ply file
Matlab point cloud processing (XXIV): point cloud median filtering (pcmedian)
Super Codex from the open source world, the authoritative release of China's open source Codex list!
【解决】修改子物体Transform信息导致变换不对称、异常问题的解决方案
Research Report on development trend and competitive strategy of global metallized high barrier film industry
Dynamics 365 option set operation
Deconstruction of volatile | community essay solicitation
【Day15 文献泛读】Numerical magnitude affects temporal memories but not time encoding
C# List. Can foreach temporarily / at any time terminate a loop?
[uniapp native plug-in] shangmi cashbox plug-in
基于模板配置的数据可视化平台
Point cloud read / write (2): read / write TXT point cloud (space separated | comma separated)
Correcting high score phrases & sentence patterns
Meetup review how Devops & mlops solve the machine learning dilemma in enterprises?
小程序启动性能优化实践
【Day4 文献精读】Space–time interdependence: Evidence against asymmetric mapping between time and space
astra pro双目相机ros下启动笔记
Bit operation in leetcode
想做钢铁侠?听说很多大佬都是用它入门的
【Day9 文献泛读】On the (a)symmetry between the perception of time and space in large-scale environments