Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

No backup full page in PostgreSQL xlog format

2025-01-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Heap_insert xl_heap_insert xlrec; xl_heap_header xlhdr; XLogRegisterData ((char *) & xlrec, SizeOfHeapInsert);-> / / xl_heap_insert |-- XLogRecData * rdata; | rdata- > data = data; | rdata- > len = len; | mainrdata_last- > next = rdata; | mainrdata_last = rdata |-- mainrdata_len + = len; / / xl_heap_header+heapup- > t_data XLogRegisterBufData (0, (char *) & xlhdr, SizeOfHeapHeader);-> |-- regbuf = & registered_ buffers [block _ id]; | rdata- > data = data; | rdata- > len = len; | regbuf- > rdata_tail- > next = rdata | | regbuf- > rdata_tail = rdata; |-- regbuf- > rdata_len + = len; XLogRegisterBufData (0, (char *) heaptup- > t_data + SizeofHeapTupleHeader,heaptup- > t_len-SizeofHeapTupleHeader); recptr = XLogInsert (RM_HEAP_ID, info);-> |-- rdt = XLogRecordAssemble (rmid, info, RedoRecPtr, doPageWrites,&fpw_lsn);-- EndPos = XLogInsertRecord (rdt, fpw_lsn, curinsert_flags) | Static XLogRecData hdr_rdt;XLogRecordAssemble: char * scratch = hdr_scratch;//hdr_scratch is the start position of a xlog record rechdr = (XLogRecord *) scratch; scratch + = SizeOfXLogRecord; hdr_rdt.next = NULL; rdt_datas_last = & hdr_rdt;//xlog record chain header hdr_rdt.data = hdr_scratch / / hdr_rdt- > next=xl_heap_header+heapup- > t_data registered_buffer * regbuf = & registered_ buffers [block _ id]; rdt_datas_last- > next= regbuf- > rdata_head; dt_datas_last = regbuf- > rdata_tail; / / xl_heap_header+heapup- > t_data is followed by xl_heap_insert rdt_datas_last- > next= mainrdata_head; rdt_datas_last = mainrdata_last

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report