In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
The parameters of the new version of pg_resetlog have changed. Before looking for Dege's article on the Internet, I looked at the method of rebuilding the control file, and then compared the actual change parameters to make it easier for everyone to solve the problem.
Postgresql9.2
Options:
-l TLI,FILE,SEG force minimum WAL starting location for new transaction log
-l timelineid,fileid,seg
Specify the minimum WAL start location for the new transaction log, which should be larger than any WAL log file name that currently exists in pg_xlog. The name is expressed in hexadecimal and is divided into three parts. the first part is the timeline, which generally keeps the value of that part unchanged. The value of the third part cannot exceed 255. that is, 0xFF. If this is the value, add 1 to the second part and change the third part to 0.
-m XID set next multitransaction ID
The security setting should be the largest file name under pg_multixact/offsets, then add 1, and then multiply by 65536. The file name and parameters should be in hexadecimal format. If there is no data in the pg_multixact/offsets directory, get-m 0x10000
Pg_resetxlog-l 0x10x10000 0x0jue 0x4-x 0x000100000-m 0x10000-O 0x10000-f $PGDATA
Postgresql 9.4 plus
Options:
-l XLOGFILE force minimum WAL starting location for new transaction log
-l XLOGFILE
Specify the location of the next xlog log
-m MXID,MXID set next and oldest multitransaction ID
The latest parameters need to be set for both the next transaction and the oldest transaction ID
Pg_resetxlog-l 00000001000000000000000006-x 0x100000-m 0x10000 PGDATA 0x10000-O 0x0 $PGDATA-f
Reference:
Https://yq.aliyun.com/articles/59113
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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.