当前位置:网站首页>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
边栏推荐
- Inventory | more than 20 typical security incidents occurred in February, with a loss of nearly $400million
- Data visualization platform based on template configuration
- NLP - fastText
- Exercise 11-2 find week (15 points)
- Is the product stronger or weaker, and is the price unchanged or reduced? Talk about domestic BMW X5
- 习题10-1 判断满足条件的三位数 (15 分)
- Point cloud read / write (2): read / write TXT point cloud (space separated | comma separated)
- 【Day6-7 文献精读】A unifying Bayesian framework accounting for spatiotemporal interferences with a ...
- The second bullet of in-depth dialogue with the container service ack distribution: how to build a hybrid cloud unified network plane with the help of hybridnet
- Games-101 Yan Lingqi 5-6 lecture on raster processing (notes sorting)
猜你喜欢

【Day1/5 文献精读】Speed Constancy or Only Slowness: What Drives the Kappa Effect

Games-101 Yan Lingqi 5-6 lecture on raster processing (notes sorting)

Read dense visual slam for rgb-d cameras

小程序启动性能优化实践

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

Meetup review how Devops & mlops solve the machine learning dilemma in enterprises?

【Day13-14 文献精读】Cross-dimensional magnitude interactions arise from memory interference

Library management system

The second bullet of in-depth dialogue with the container service ack distribution: how to build a hybrid cloud unified network plane with the help of hybridnet

Only three steps are needed to learn how to use low code thingjs to connect with Sen data Dix data
随机推荐
NLP - fastText
[JS] 1347- high level usage of localstorage
Exercise 11-2 find week (15 points)
Data visualization platform based on template configuration
leetcode 257. Binary tree paths all paths to a binary tree (simple)
Super Codex from the open source world, the authoritative release of China's open source Codex list!
【Day10 文献泛读】Temporal Cognition Can Affect Spatial Cognition More Than Vice Versa: The Effect of ...
Research Report on development trend and competitive strategy of global seabed leakage detection system industry
Matlab point cloud processing (XXV): point cloud generation DEM (pc2dem)
SDNU_ ACM_ ICPC_ 2022_ Weekly_ Practice_ 1st (supplementary question)
[uniapp native plug-in] shangmi cashbox plug-in
习题9-1 时间换算 (15 分)
Exercise 8-2 finding a specified element in an array (15 points)
astra pro双目相机ros下启动笔记
The second bullet of in-depth dialogue with the container service ack distribution: how to build a hybrid cloud unified network plane with the help of hybridnet
消息队列入门MQ
Leetcode must review 20 lintcode (5466421166978227)
Meetup回顾|DevOps&MLOps如何在企业中解决机器学习困境?
Why can't Google search page infinite?
Implementation of stack stack