当前位置:网站首页>Processus postgresql10
Processus postgresql10
2022-06-11 22:55:00 【M0 37294549】
pg Processus
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 queryAnalyse
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);
//Générer un plan d'exécution
ExecutorStart(queryDesc, 0);
//Plan de mise en œuvre
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;
}
}
//Libérer des ressources
ExecutorFinish(queryDesc);
ExecutorEnd(queryDesc);
FreeQueryDesc(queryDesc);
}
Écrire des données
nodeModifyTable.c ExecModifyTable
nodeModifyTable.c ExecInsert
heapam.c heap_insert
Écrireheap
边栏推荐
- astra pro双目相机ros下启动笔记
- 习题8-2 在数组中查找指定元素 (15 分)
- 动态规划之0-1背包问题(详解+分析+原码)
- Exercise 8-5 using functions to realize partial copying of strings (20 points)
- Exercise 9-1 time conversion (15 points)
- Lekao.com: what is the difference between Level 3 health managers and level 2 health managers?
- 小程序启动性能优化实践
- How to make scripts executable anywhere
- Read dense visual slam for rgb-d cameras
- Solution to page locking caused by xshell accidentally pressing ctrl+s
猜你喜欢

Google搜索為什麼不能無限分頁?

学1个月爬虫就月赚6000?别被骗了,老师傅告诉你爬虫的真实情况

华为设备配置HoVPN

CloudCompare源码分析:读取ply文件

Fastapi 5 - common requests and use of postman and curl (parameters, x-www-form-urlencoded, raw)

Is the product stronger or weaker, and is the price unchanged or reduced? Talk about domestic BMW X5
![[technology sharing] after 16 years, how to successfully implement the dual active traffic architecture of zhubajie.com](/img/9f/380dc1a2c1277a216b8c1cd41045bc.jpg)
[technology sharing] after 16 years, how to successfully implement the dual active traffic architecture of zhubajie.com

SDNU_ ACM_ ICPC_ 2022_ Weekly_ Practice_ 1st (supplementary question)

H.265编码原理入门

2022新兴市场品牌出海线上峰会即将举办 ADVANCE.AI CEO寿栋将受邀出席
随机推荐
想做钢铁侠?听说很多大佬都是用它入门的
Exercise 11-3 calculate the longest string length (15 points)
完好性简要介绍
Swiper -- a solution to the conflict of single page multicast plug-ins
【Day15 文献泛读】Numerical magnitude affects temporal memories but not time encoding
【Day9 文献泛读】On the (a)symmetry between the perception of time and space in large-scale environments
Tensorflow [actual Google deep learning framework] uses HDF5 to process large data sets with tflearn
遇到表格,手动翻页太麻烦?我教你写脚本,一页展示所有数据
Alibaba cloud server MySQL remote connection has been disconnected
Is it too troublesome to turn pages manually when you encounter a form? I'll teach you to write a script that shows all the data on one page
SecurityContextHolder.getContext().getAuthentication().getPrincipal()获取到的是username而不是UserDetails
Implementation of sequencelist sequence table
批改网高分短语&句型
Correcting high score phrases & sentence patterns
Dynamics 365 option set operation
926. flip string to monotonic increment
Deconstruction of volatile | community essay solicitation
Exercise 9-6 statistics of student scores by grade (20 points)
926. 将字符串翻转到单调递增
Toyota suppliers shut down Japanese factories due to cyber attacks, NVIDIA counterattacks extortion gangs to prevent data leakage | global cyber security hotspot on March 1