在CREATE INDEX期间,pg_xlog变得非常大 [英] pg_xlog becomes extremely large during CREATE INDEX

查看:133
本文介绍了在CREATE INDEX期间,pg_xlog变得非常大的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问候,


我有一个23GB的数据表,我正在构建三个

列的主键。数据安装在137GB设备上,pg_xlog安装在另一台3.5GB设备上。
。我已经配置了24个检查点段,

我希望在pg_xlog中最坏情况下使用384MB。

不幸的是,在CREATE INDEX期间,pg_xlog变满了! br />

[这封邮件末尾有一个ls(1)列表,如果你愿意的话)


创建的操作pg_xlog中的222个文件在填充设备之前,

并且没有迹象表明它计划停在那里。是否有某些因素,除了检查点段,它控制着

pg_xlog的大小,还是还有一些其他操作也会在
$ b中写入文件$ b pg_xlog,或者,是刚刚逃跑的服务器?


我已经重置了xlogs并且我正在再次尝试。


此致,

Jeffrey


mistral:/ pg_xlog_full#ls -l <​​br />
总计3641692

- rw ------- 1 postgres postgres 16777216 5月12日15:51 0000000600000092

-rw ------- 1 postgres postgres 16777216 5月12日15:51 0000000600000093

-rw ------- 1 postgres postgres 16777216 5月12日15:51 0000000600000094

-rw ------- 1 postgres postgres 16777216 5月12日15:51 0000000600000095

-rw ------- 1 postgres postgres 16777216 5月12日15:52 0000000600000096

-rw ------- 1 postgres postgres 16777216 5月12日15 :52 0000000600000097

-rw ------- 1 postgres postgres 16777216 5月12日15:52 000000060000009 8

-rw ------- 1 postgres postgres 16777216 5月12日15:52 0000000600000099

-rw ------- 1 postgres postgres 16777216 5月12 15:52 000000060000009A

-rw ------- 1 postgres postgres 16777216 5月12日15:52 000000060000009B

-rw ------- 1 postgres postgres 16777216 5月12日15:53 000000060000009C

-rw ------- 1 postgres postgres 16777216 5月12日15:53 000000060000009D

-rw ---- --- 1 postgres postgres 16777216 5月12日15:53 000000060000009E

-rw ------- 1 postgres postgres 16777216 5月12日15:53 000000060000009F

-rw ------- 1 postgres postgres 16777216 5月12日15:53 00000006000000A0

-rw ------- 1 postgres postgres 16777216 5月12日15:53 00000006000000A1

-rw ------- 1 postgres postgres 16777216 5月12日15:54 00000006000000A2

-rw ------- 1 postgres postgres 16777216 5月12日15:54 00000006000000A3

-rw ------- 1 postgres postgres 16777216 5月12日15:54 0000000 6000000A4

-rw ------- 1 postgres postgres 16777216 5月12日15:54 00000006000000A5

-rw ------- 1 postgres postgres 16777216 5月12 15:54 00000006000000A6

-rw ------- 1 postgres postgres 16777216 5月12日15:54 00000006000000A7

-rw ------- 1 postgres postgres 16777216 5月12日15:54 00000006000000A8

-rw ------- 1 postgres postgres 16777216 5月12日15:55 00000006000000A9

-rw ---- --- 1 postgres postgres 16777216 5月12日15:55 00000006000000AA

-rw ------- 1 postgres postgres 16777216 5月12日15:55 00000006000000AB

-rw ------- 1 postgres postgres 16777216 5月12日15:55 00000006000000AC

-rw ------- 1 postgres postgres 16777216 5月12日15:55 00000006000000AD

-rw ------- 1 postgres postgres 16777216 5月12日15:55 00000006000000AE

-rw ------- 1 postgres postgres 16777216 5月12日15:56 00000006000000AF

-rw ------- 1 postgres postgres 16777216 5月12日15:56 00000006000000B0

-rw ------- 1 postgres postgres 16777216 5月12日15:56 00000006000000B1

-rw ------- 1 postgres postgres 16777216 5月12 15:56 00000006000000B2

-rw ------- 1 postgres postgres 16777216 5月12日15:56 00000006000000B3

-rw ------- 1 postgres postgres 16777216 5月12日15:56 00000006000000B4

-rw ------- 1 postgres postgres 16777216 5月12日15:57 00000006000000B5

-rw ---- --- 1 postgres postgres 16777216 5月12日15:57 00000006000000B6

-rw ------- 1 postgres postgres 16777216 5月12日15:57 00000006000000B7

-rw ------- 1 postgres postgres 16777216 5月12日15:57 00000006000000B8

-rw ------- 1 postgres postgres 16777216 5月12日15:57 00000006000000B9

-rw ------- 1 postgres postgres 16777216 5月12日15:57 00000006000000BA

-rw ------- 1 postgres postgres 16777216 5月12日15:58 00000006000000BB

-rw ------- 1 postgres postgres 16777216 5月12 15:58 00000006000000BC

-rw ------- 1 postgres postgres 16777216 5月12日15:58 00000006000000BD

-rw ------- 1 postgres postgres 16777216 5月12日15:58 00000006000000BE

-rw ------- 1 postgres postgres 16777216 5月12日15:58 00000006000000BF

-rw ---- --- 1 postgres postgres 16777216 5月12日15:58 00000006000000C0

-rw ------- 1 postgres postgres 16777216 5月12日15:58 00000006000000C1

-rw ------- 1 postgres postgres 16777216 5月12日15:59 00000006000000C2

-rw ------- 1 postgres postgres 16777216 5月12日15:59 00000006000000C3

-rw ------- 1 postgres postgres 16777216 5月12日15:59 00000006000000C4

-rw ------- 1 postgres postgres 16777216 5月12日15:59 00000006000000C5

-rw ------- 1 postgres postgres 16777216 5月12日15:59 00000006000000C6

-rw ------- 1 postgres postgres 16777216 5月12日15: 59 00000006000000C7

-rw ------- 1 postgres postgres 16777 216 5月12日16:00 00000006000000C8

-rw ------- 1 postgres postgres 16777216 5月12日16:00 00000006000000C9

-rw ------ - 1 postgres postgres 16777216 5月12日16:00 00000006000000CA

-rw ------- 1 postgres postgres 16777216 5月12日16:00 00000006000000CB

-rw-- ----- 1 postgres postgres 16777216 5月12日16:00 00000006000000CC

-rw ------- 1 postgres postgres 16777216 5月12日16:01 00000006000000CD

-rw ------- 1 postgres postgres 16777216 5月12日16:01 00000006000000CE

-rw ------- 1 postgres postgres 16777216 5月12日16:01 00000006000000CF

-rw ------- 1 postgres postgres 16777216 5月12日16:01 00000006000000D0

-rw ------- 1 postgres postgres 16777216 5月12日16:01 00000006000000D1

-rw ------- 1 postgres postgres 16777216 5月12日16:01 00000006000000D2

-rw ------- 1 postgres postgres 16777216 5月12日16:02 00000006000000D3

-rw ------- 1 postgres postgr es 16777216 5月12日16:02 00000006000000D4

-rw ------- 1 postgres postgres 16777216 5月12日16:02 00000006000000D5

-rw ----- - 1 postgres postgres 16777216 5月12日16:02 00000006000000D6

-rw ------- 1 postgres postgres 16777216 5月12日16:02 00000006000000D7

-rw- ------ 1 postgres postgres 16777216 5月12日16:03 00000006000000D8

-rw ------- 1 postgres postgres 16777216 5月12日16:03 00000006000000D9

-rw ------- 1 postgres postgres 16777216 5月12日16:03 00000006000000DA

-rw ------- 1 postgres postgres 16777216 5月12日16:03 00000006000000DB
-rw ------- 1 postgres postgres 16777216 5月12日16:03 00000006000000DC

-rw ------- 1 postgres postgres 16777216 5月12日16:03 00000006000000DD

-rw ------- 1 postgres postgres 16777216 5月12日16:04 00000006000000DE

-rw ------- 1 postgres postgres 16777216 5月12 16:04 00000006000000DF

-rw ------- 1 postgre s postgres 16777216 5月12日16:04 00000006000000E0

-rw ------- 1 postgres postgres 16777216 5月12日16:04 00000006000000E1

-rw ---- --- 1 postgres postgres 16777216 5月12日16:04 00000006000000E2

-rw ------- 1 postgres postgres 16777216 5月12日16:04 00000006000000E3

-rw ------- 1 postgres postgres 16777216 5月12日16:05 00000006000000E4

-rw ------- 1 postgres postgres 16777216 5月12日16:05 00000006000000E5

-rw ------- 1 postgres postgres 16777216 5月12日16:05 00000006000000E6

-rw ------- 1 postgres postgres 16777216 5月12日16:05 00000006000000E7

-rw ------- 1 postgres postgres 16777216 5月12日16:05 00000006000000E8

-rw ------- 1 postgres postgres 16777216 5月12日16: 06 00000006000000E9

-rw ------- 1 postgres postgres 16777216 5月12日16:06 00000006000000EA

-rw ------- 1 postgres postgres 16777216 5月12日16:06 00000006000000EB

-rw ------- 1 postgres postgres 16777216 5月12日16:06 00000006000000EC

-rw ------- 1 postgres postgres 16777216 5月12日16:07 00000006000000ED

-rw ---- --- 1 postgres postgres 16777216 5月12日16:07 00000006000000EE

-rw ------- 1 postgres postgres 16777216 5月12日16:07 00000006000000EF

-rw ------- 1 postgres postgres 16777216 5月12日16:07 00000006000000F0

-rw ------- 1 postgres postgres 16777216 5月12日16:07 00000006000000F1

-rw ------- 1 postgres postgres 16777216 5月12日16:08 00000006000000F2

-rw ------- 1 postgres postgres 16777216 5月12日16:08 00000006000000F3

-rw ------- 1 postgres postgres 16777216 5月12日16:08 00000006000000F4

-rw ------- 1 postgres postgres 16777216 5月12日16: 08 00000006000000F5

-rw ------- 1 postgres postgres 16777216 5月12日16:08 00000006000000F6

-rw ------- 1 postgres postgres 16777216 5月12日16:09 00000006000000F7

-rw ---- --- 1 postgres postgres 16777216 5月12日16:09 00000006000000F8

-rw ------- 1 postgres postgres 16777216 5月12日16:09 00000006000000F9

-rw ------- 1 postgres postgres 16777216 5月12日16:09 00000006000000FA

-rw ------- 1 postgres postgres 16777216 5月12日16:09 00000006000000FB

-rw ------- 1 postgres postgres 16777216 5月12日16:09 00000006000000FC

-rw ------- 1 postgres postgres 16777216 5月12日16:10 00000006000000FD

-rw ------- 1 postgres postgres 16777216 5月12日16:10 00000006000000FE

-rw ------- 1 postgres postgres 16777216 5月12日16: 10 0000000700000000

-rw ------- 1 postgres postgres 16777216 5月12日16:10 0000000700000001

-rw ------- 1 postgres postgres 16777216 5月12日16:10 0000000700000002

-rw ------- 1 postgres postgres 16777216 5月12日16:11 0000000700000003

-rw ------- 1 postgres postgres 16777216 5月12日16:11 0000000700000004

-rw ------- 1 postgres postgres 16777216 5月12日16:11 0000000700000005

-rw ------- 1 postgres postgres 16777216 5月12日16:11 0000000700000006

-rw ------- 1 postgres postgres 16777216 5月12日16:12 0000000700000007

-rw ------- 1 postgres postgres 16777216 5月12日16:12 0000000700000008

-rw ------- 1 postgres postgres 16777216 5月12日16:12 0000000700000009

-rw ------- 1 postgres postgres 16777216 5月12日16:12 000000070000000A

-rw ------- 1 postgres postgres 16777216 5月12日16:12 000000070000000B

-rw ------- 1 postgres postgres 16777216 5月12日16:13 000000070000000C

-rw ------- 1 postgres postgres 16777216 5月12日16:13 000000070000000D

-rw ----- - 1 postgres postgres 16777216 5月12日16:13 000000070000000E

-rw ------- 1 postgres postgres 16777216 5月12日16:13 000000070000000F

-rw- ------ 1 postgres postgres 16777216 5月12日16:13 0000000700000010

-rw ------- 1 postgres postgres 16777216 5月12日16:14 0000000700000011

-rw ------- 1 postgres postgres 16777216 5月12日16: 14 0000000700000012

-rw ------- 1 postgres postgres 16777216 5月12日16:14 0000000700000013

-rw ------- 1 postgres postgres 16777216 5月12日16:14 0000000700000014

-rw ------- 1 postgres postgres 16777216 5月12日16:15 0000000700000015

-rw ------- 1 postgres postgres 16777216 5月12日16:15 0000000700000016

-rw ------- 1 postgres postgres 16777216 5月12日16:15 0000000700000017

-rw --- ---- 1 postgres postgres 16777216 5月12日16:15 0000000700000018

-rw ------- 1 postgres postgres 16777216 5月12日16:15 0000000700000019

- rw ------- 1 postgres postgres 16777216 5月12日16:16 000000070000001A

-rw ------- 1 postgres postgres 16777216 5月12日16:16 000000070000001B

-rw ------- 1 postgres postgres 16777216 5月12日16:16 00000007000 0001C

-rw ------- 1 postgres postgres 16777216 5月12日16:16 000000070000001D

-rw ------- 1 postgres postgres 16777216 5月12 16:17 000000070000001E

-rw ------- 1 postgres postgres 16777216 5月12日16:17 000000070000001F

-rw ------- 1 postgres postgres 16777216 5月12日16:17 0000000700000020

-rw ------- 1 postgres postgres 16777216 5月12日16:17 0000000700000021

-rw ---- --- 1 postgres postgres 16777216 5月12日16:18 0000000700000022

-rw ------- 1 postgres postgres 16777216 5月12日16:18 0000000700000023

-rw ------- 1 postgres postgres 16777216 5月12日16:18 0000000700000024

-rw ------- 1 postgres postgres 16777216 5月12日16:18 0000000700000025

-rw ------- 1 postgres postgres 16777216 5月12日16:19 0000000700000026

-rw ------- 1 postgres postgres 16777216 5月12日16:19 0000000700000027

-rw ------- 1 postgres postgres 16777216 5月12日16:19 000 0000700000028

-rw ------- 1 postgres postgres 16777216 5月12日16:19 0000000700000029

-rw ------- 1 postgres postgres 16777216 5月12 16:20 000000070000002A

-rw ------- 1 postgres postgres 16777216 5月12日16:20 000000070000002B

-rw ------- 1 postgres postgres 16777216 5月12日16:20 000000070000002C

-rw ------- 1 postgres postgres 16777216 5月12日16:20 000000070000002D

-rw ---- --- 1 postgres postgres 16777216 5月12日16:20 000000070000002E

-rw ------- 1 postgres postgres 16777216 5月12日16:21 000000070000002F

-rw ------- 1 postgres postgres 16777216 5月12日16:21 0000000700000030

-rw ------- 1 postgres postgres 16777216 5月12日16:21 0000000700000031

-rw ------- 1 postgres postgres 16777216 5月12日16:21 0000000700000032

-rw ------- 1 postgres postgres 16777216 5月12日16:22 0000000700000033

-rw ------- 1 postgres postgres 16777216 5月12日1 6:22 0000000700000034

-rw ------- 1 postgres postgres 16777216 5月12日16:22 0000000700000035

-rw ------- 1 postgres postgres 16777216 5月12日16:22 0000000700000036

-rw ------- 1 postgres postgres 16777216 5月12日16:23 0000000700000037

-rw ----- - 1 postgres postgres 16777216 5月12日16:23 0000000700000038

-rw ------- 1 postgres postgres 16777216 5月12日16:23 0000000700000039

-rw- ------ 1 postgres postgres 16777216 5月12日16:23 000000070000003A

-rw ------- 1 postgres postgres 16777216 5月12日16:24 000000070000003B

-rw ------- 1 postgres postgres 16777216 5月12日16:24 000000070000003C

-rw ------- 1 postgres postgres 16777216 5月12日16:24 000000070000003D
-rw ------- 1 postgres postgres 16777216 5月12日16:24 000000070000003E

-rw ------- 1 postgres postgres 16777216 5月12日16:25 000000070000003F

-rw ------- 1 postgres postgres 16777216 5月12日16:25 0000000700000040

-rw ------- 1 postgres postgres 16777216 5月12日16:25 0000000700000041

-rw ------- 1 postgres postgres 16777216 5月12日16:25 0000000700000042

-rw ------- 1 postgres postgres 16777216 5月12日16:26 0000000700000043

-rw --- ---- 1 postgres postgres 16777216 5月12日16:26 0000000700000044

-rw ------- 1 postgres postgres 16777216 5月12日16:26 0000000700000045

- rw ------- 1 postgres postgres 16777216 5月12日16:26 0000000700000046

-rw ------- 1 postgres postgres 16777216 5月12日16:26 0000000700000047

-rw ------- 1 postgres postgres 16777216 5月12日16:27 0000000700000048

-rw ------- 1 postgres postgres 16777216 5月12日16:27 0000000700000049

-rw ------- 1 postgres postgres 16777216 5月12日16:27 000000070000004A

-rw ------- 1 postgres postgres 16777216 5月12日16 :27 000000070000004B

-rw ------- 1 postgres postgres 1 6777216 5月12日16:28 000000070000004C

-rw ------- 1 postgres postgres 16777216 5月12日16:28 000000070000004D

-rw ------ - 1 postgres postgres 16777216 5月12日16:28 000000070000004E

-rw ------- 1 postgres postgres 16777216 5月12日16:28 000000070000004F

-rw-- ----- 1 postgres postgres 16777216 5月12日16:29 0000000700000050

-rw ------- 1 postgres postgres 16777216 5月12日16:29 0000000700000051

-rw ------- 1 postgres postgres 16777216 5月12日16:29 0000000700000052

-rw ------- 1 postgres postgres 16777216 5月12日16:29 0000000700000053

-rw ------- 1 postgres postgres 16777216 5月12日16:30 0000000700000054

-rw ------- 1 postgres postgres 16777216 5月12日16:30 0000000700000055

-rw ------- 1 postgres postgres 16777216 5月12日16:30 0000000700000056

-rw ------- 1 postgres postgres 16777216 5月12日16:30 0000000700000057

-rw ------- 1 postgres po stgres 16777216 5月12日16:31 0000000700000058

-rw ------- 1 postgres postgres 16777216 5月12日16:31 0000000700000059

-rw ----- - 1 postgres postgres 16777216 5月12日16:31 000000070000005A

-rw ------- 1 postgres postgres 16777216 5月12日16:32 000000070000005B

-rw- ------ 1 postgres postgres 16777216 5月12日16:32 000000070000005C

-rw ------- 1 postgres postgres 16777216 5月12日16:32 000000070000005D

-rw ------- 1 postgres postgres 16777216 5月12日16:32 000000070000005E

-rw ------- 1 postgres postgres 16777216 5月12日16:33 000000070000005F
-rw ------- 1 postgres postgres 16777216 5月12日16:33 0000000700000060

-rw ------- 1 postgres postgres 16777216 5月12日16:33 0000000700000061

-rw ------- 1 postgres postgres 16777216 5月12日16:33 0000000700000062

-rw ------- 1 postgres postgres 16777216 5月12 16:34 0000000700000063

-rw ------- 1 pos tgres postgres 16777216 5月12日16:34 0000000700000064

-rw ------- 1 postgres postgres 16777216 5月12日16:34 0000000700000065

-rw ---- --- 1 postgres postgres 16777216 5月12日16:34 0000000700000066

-rw ------- 1 postgres postgres 16777216 5月12日16:34 0000000700000067

-rw ------- 1 postgres postgres 16777216 5月12日16:35 0000000700000068

-rw ------- 1 postgres postgres 16777216 5月12日16:35 0000000700000069

-rw ------- 1 postgres postgres 16777216 5月12日16:35 000000070000006A

-rw ------- 1 postgres postgres 16777216 5月12日16:35 000000070000006B

-rw ------- 1 postgres postgres 16777216 5月12日16:36 000000070000006C

-rw ------- 1 postgres postgres 16777216 5月12日16: 36 000000070000006D

-rw ------- 1 postgres postgres 16777216 5月12日16:36 000000070000006E

-rw ------- 1 postgres postgres 16777216 5月12日16:36 000000070000006F

-rw ------- 1 postgres postgres 16777216 5月12日16:45 0000000700000070

---------------------------(广播结束)---------------------------

提示3:如果通过Usenet发布/阅读,请发送适当的

subscribe-nomail命令到 ma ******* @ postgresql.org 这样你的

消息就可以干净地进入邮件列表

解决方案

"杰弗里W.贝克 < JW ***** @ acm.org>写道:

我已经配置了24个检查点段,
我希望在pg_xlog中最坏情况下使用384MB.
不幸的是,在CREATE INDEX期间,pg_xlog变满了!




Postgres版本? AFAIR 7.1.2或其附近会这样做,因为它不会丢弃包含开放

交易工作的日志段。


我能想到当前版本中这种行为的唯一原因

是因为检查点由于某种原因没有完成。您是否在邮件管理员日志中查看了

,看看检查点是否在喋喋不休?

请注意,无论如何您的计算都是关闭的:根据文档,最近

版本将允许存在最多2 * checkpoint_segments + 1个WAL文件。

这是因为我们保存了最后两个值得数据的检查点。


问候,tom lane


---------------------------(...结束广播)---------------------------

提示1:订阅和取消订阅命令转到 ma ******* @ postgresql.org


< blockquote>在2004年3月12日星期三20:18,Tom Lane写道:

" Jeffrey W. Baker" < JW ***** @ acm.org>写道:

我已经配置了24个检查点段,
我希望在pg_xlog中最坏情况下使用384MB.
不幸的是,在CREATE INDEX期间,pg_xlog变满了!
Postgres版本? AFAIR 7.1.2或其附近会这样做,因为它不会丢弃包含开放交易工作的日志段。




这是7.4.1。

我能想到当前版本中此类行为的唯一原因是检查点由于某种原因没有完成。你有没有看过postmaster日志中的
看看检查点是否在喋喋不休?


哦,当然,这很咩咩。显然我的电脑太快了:


syslog:May 12 21:20:32 mistral postgres [17458]:[214-1]日志:检查点发生得太频繁(相隔12秒) )

syslog:May 12 21:20:32 mistral postgres [17458]:[214-2]提示:考虑增加配置参数checkpoint_segments。


这也是最近崩溃之前的事情:


5月12日16:36:53迷失postgres [506]:[173-1]日志:检查点正在发生太频繁(相隔16秒)

5月12日16:36:53迷失postgres [506]:[173-2]建议:考虑增加配置参数checkpoint_segments。

5月12日16:37:08迷失postgres [506]:[174-1]日志:服务器进程(PID 16403)被信号终止6

5月12日16:37:08迷雾postgres [506]:[175-1]日志:终止任何其他活动服务器进程

5月12日16:37:08迷失postgres [26212]:[3-1]警告:终止连接因为另一个服务器进程崩溃

5月12日16:37:08迷失postgres [26212]:[3-2]详细信息:postmaster已命令此服务器进程回滚当前事务并退出,因为另一台服务器

5月12日16:37:08迷失postgres [26212]:[3-3]进程异常退出并可能损坏共享内存。

5月12日16 :37:08 misral postgres [26212]:[3-4]提示:稍后你应该可以重新连接到数据库并重复你的命令。

5月12日16:37:08迷失postgres [14396]:[1-1]警告:由于另一个服务器进程崩溃而终止连接

5月12日16:37:08迷失postgres [14396]:[1-2]详细信息: postmaster已命令此服务器进程回滚当前事务并退出,因为另一台服务器

5月12日16:37:08 misral postgres [14396]:[1-3]进程异常退出并可能已损坏共享内存。

May 12 16:37:08 mistral postgres [14396]:[1- 4]提示:稍后你应该能够重新连接数据库并重复你的命令。

5月12日16:37:08迷失postgres [14396]:[1-5]背景:写作关系号17142/289600495的块56889

5月12日16:37:08 misral postgres [506]:[176-1]日志:所有服务器进程终止;重新初始化

5月12日16:37:08迷失postgres [17086]:[177-1]日志:数据库系统中断2004-05-12 16:36:53 PDT

5月12日16:37:08迷失postgres [17086]:[178-1]日志:检查站记录是6 / 92B32D48

5月12日16:37:08迷失postgres [17086] :[179-1]日志:重做记录为6 / 92B32D48; undo record为0/0;关闭FALSE

5月12日16:37:08 mistral postgres [17086]:[180-1]日志:下一个交易ID:10232;下一个OID:289600632

5月12日16:37:08 misral postgres [17086]:[181-1]日志:数据库系统没有正常关闭;正在进行自动恢复

5月12日16:37:08迷失postgres [17086]:[182-1]日志:重做从6 / 92B32D88开始

5月12日16: 45:29 mistral postgres [17086]:[183-1]日志:无法打开文件" / var / lib / postgres / data / pg_xlog / 0000000700000071" (日志文件7,段113):没有这样的文件或目录

5月12日16:45:29 misral postgres [17086]:[184-1]日志:重做7 / 70FFC400

5月12日16:45:50 misral postgres [506]:[177-1]日志:启动过程(PID 17086)被信号终止6

5月12日16:45 :50个错误的postgres [506]:[178-1]日志:由于启动过程失败导致启动中止


我还有很多再循环消息:


5月12日13:10:01 mistral postgres [16373]:[20-1]日志:回收的交易日志文件0000000600000078

5月12日13:10:01 mistral postgres [16373]:[21-1]日志:回收的交易日志文件0000000600000079

5月12日13:10:01 mistral postgres [16373]:[ 22-1]日志:再循环交易日志文件000000060000007A

5月12日13:10:01 mistral postgres [16373]:[23-1]日志:再循环交易日志文件000000060000007B

5月12日13:10:01 mistral postgres [16373]:[24-1]日志:回收的交易日志文件000000060000007C

5月12日13:20: 03 mistral postgres [16408]:[1-1]日志:删除事务日志文件0000000600000090

5月12日13:20:03 mistral postgres [16408]:[2-1]日志:删除事务日志文件0000000600000091

请注意,无论如何您的计算都是关闭的:根据文档,最近的
版本将允许最多2 * che ckpoint_segments + 1个WAL文件存在。
这是因为我们保存了最后两个检查点的数据。




这就是为什么我给它一个数量级的余地。这样的计算

总是关闭一两倍。


此时此刻再次这样做,我感觉到pg_xlog

收敛的大小与


PGDATA / base /

相同

Greetings,

I have a 23GB data table upon which I am building a primary key of three
columns. The data is mounted in a 137GB device and pg_xlog is mounted
on a separate 3.5GB device. I have configured 24 checkpoint segments,
which I expect gives me a worst-case usage in pg_xlog of 384MB.
Unfortunately, during the CREATE INDEX, pg_xlog becomes full!

[There''s an ls(1) listing at the end of this mail, if you care to see]

The operation created 222 files in pg_xlog before it filled the device,
and there''s no indication that it was planning to stop there. Is there
some factor, other than checkpoint segments, which controls the size of
pg_xlog, or is there some other operation that also writes files in
pg_xlog, or, is the server just running away?

I have reset the xlogs and I''m trying again.

Regards,
Jeffrey

mistral:/pg_xlog_full# ls -l
total 3641692
-rw------- 1 postgres postgres 16777216 May 12 15:51 0000000600000092
-rw------- 1 postgres postgres 16777216 May 12 15:51 0000000600000093
-rw------- 1 postgres postgres 16777216 May 12 15:51 0000000600000094
-rw------- 1 postgres postgres 16777216 May 12 15:51 0000000600000095
-rw------- 1 postgres postgres 16777216 May 12 15:52 0000000600000096
-rw------- 1 postgres postgres 16777216 May 12 15:52 0000000600000097
-rw------- 1 postgres postgres 16777216 May 12 15:52 0000000600000098
-rw------- 1 postgres postgres 16777216 May 12 15:52 0000000600000099
-rw------- 1 postgres postgres 16777216 May 12 15:52 000000060000009A
-rw------- 1 postgres postgres 16777216 May 12 15:52 000000060000009B
-rw------- 1 postgres postgres 16777216 May 12 15:53 000000060000009C
-rw------- 1 postgres postgres 16777216 May 12 15:53 000000060000009D
-rw------- 1 postgres postgres 16777216 May 12 15:53 000000060000009E
-rw------- 1 postgres postgres 16777216 May 12 15:53 000000060000009F
-rw------- 1 postgres postgres 16777216 May 12 15:53 00000006000000A0
-rw------- 1 postgres postgres 16777216 May 12 15:53 00000006000000A1
-rw------- 1 postgres postgres 16777216 May 12 15:54 00000006000000A2
-rw------- 1 postgres postgres 16777216 May 12 15:54 00000006000000A3
-rw------- 1 postgres postgres 16777216 May 12 15:54 00000006000000A4
-rw------- 1 postgres postgres 16777216 May 12 15:54 00000006000000A5
-rw------- 1 postgres postgres 16777216 May 12 15:54 00000006000000A6
-rw------- 1 postgres postgres 16777216 May 12 15:54 00000006000000A7
-rw------- 1 postgres postgres 16777216 May 12 15:54 00000006000000A8
-rw------- 1 postgres postgres 16777216 May 12 15:55 00000006000000A9
-rw------- 1 postgres postgres 16777216 May 12 15:55 00000006000000AA
-rw------- 1 postgres postgres 16777216 May 12 15:55 00000006000000AB
-rw------- 1 postgres postgres 16777216 May 12 15:55 00000006000000AC
-rw------- 1 postgres postgres 16777216 May 12 15:55 00000006000000AD
-rw------- 1 postgres postgres 16777216 May 12 15:55 00000006000000AE
-rw------- 1 postgres postgres 16777216 May 12 15:56 00000006000000AF
-rw------- 1 postgres postgres 16777216 May 12 15:56 00000006000000B0
-rw------- 1 postgres postgres 16777216 May 12 15:56 00000006000000B1
-rw------- 1 postgres postgres 16777216 May 12 15:56 00000006000000B2
-rw------- 1 postgres postgres 16777216 May 12 15:56 00000006000000B3
-rw------- 1 postgres postgres 16777216 May 12 15:56 00000006000000B4
-rw------- 1 postgres postgres 16777216 May 12 15:57 00000006000000B5
-rw------- 1 postgres postgres 16777216 May 12 15:57 00000006000000B6
-rw------- 1 postgres postgres 16777216 May 12 15:57 00000006000000B7
-rw------- 1 postgres postgres 16777216 May 12 15:57 00000006000000B8
-rw------- 1 postgres postgres 16777216 May 12 15:57 00000006000000B9
-rw------- 1 postgres postgres 16777216 May 12 15:57 00000006000000BA
-rw------- 1 postgres postgres 16777216 May 12 15:58 00000006000000BB
-rw------- 1 postgres postgres 16777216 May 12 15:58 00000006000000BC
-rw------- 1 postgres postgres 16777216 May 12 15:58 00000006000000BD
-rw------- 1 postgres postgres 16777216 May 12 15:58 00000006000000BE
-rw------- 1 postgres postgres 16777216 May 12 15:58 00000006000000BF
-rw------- 1 postgres postgres 16777216 May 12 15:58 00000006000000C0
-rw------- 1 postgres postgres 16777216 May 12 15:58 00000006000000C1
-rw------- 1 postgres postgres 16777216 May 12 15:59 00000006000000C2
-rw------- 1 postgres postgres 16777216 May 12 15:59 00000006000000C3
-rw------- 1 postgres postgres 16777216 May 12 15:59 00000006000000C4
-rw------- 1 postgres postgres 16777216 May 12 15:59 00000006000000C5
-rw------- 1 postgres postgres 16777216 May 12 15:59 00000006000000C6
-rw------- 1 postgres postgres 16777216 May 12 15:59 00000006000000C7
-rw------- 1 postgres postgres 16777216 May 12 16:00 00000006000000C8
-rw------- 1 postgres postgres 16777216 May 12 16:00 00000006000000C9
-rw------- 1 postgres postgres 16777216 May 12 16:00 00000006000000CA
-rw------- 1 postgres postgres 16777216 May 12 16:00 00000006000000CB
-rw------- 1 postgres postgres 16777216 May 12 16:00 00000006000000CC
-rw------- 1 postgres postgres 16777216 May 12 16:01 00000006000000CD
-rw------- 1 postgres postgres 16777216 May 12 16:01 00000006000000CE
-rw------- 1 postgres postgres 16777216 May 12 16:01 00000006000000CF
-rw------- 1 postgres postgres 16777216 May 12 16:01 00000006000000D0
-rw------- 1 postgres postgres 16777216 May 12 16:01 00000006000000D1
-rw------- 1 postgres postgres 16777216 May 12 16:01 00000006000000D2
-rw------- 1 postgres postgres 16777216 May 12 16:02 00000006000000D3
-rw------- 1 postgres postgres 16777216 May 12 16:02 00000006000000D4
-rw------- 1 postgres postgres 16777216 May 12 16:02 00000006000000D5
-rw------- 1 postgres postgres 16777216 May 12 16:02 00000006000000D6
-rw------- 1 postgres postgres 16777216 May 12 16:02 00000006000000D7
-rw------- 1 postgres postgres 16777216 May 12 16:03 00000006000000D8
-rw------- 1 postgres postgres 16777216 May 12 16:03 00000006000000D9
-rw------- 1 postgres postgres 16777216 May 12 16:03 00000006000000DA
-rw------- 1 postgres postgres 16777216 May 12 16:03 00000006000000DB
-rw------- 1 postgres postgres 16777216 May 12 16:03 00000006000000DC
-rw------- 1 postgres postgres 16777216 May 12 16:03 00000006000000DD
-rw------- 1 postgres postgres 16777216 May 12 16:04 00000006000000DE
-rw------- 1 postgres postgres 16777216 May 12 16:04 00000006000000DF
-rw------- 1 postgres postgres 16777216 May 12 16:04 00000006000000E0
-rw------- 1 postgres postgres 16777216 May 12 16:04 00000006000000E1
-rw------- 1 postgres postgres 16777216 May 12 16:04 00000006000000E2
-rw------- 1 postgres postgres 16777216 May 12 16:04 00000006000000E3
-rw------- 1 postgres postgres 16777216 May 12 16:05 00000006000000E4
-rw------- 1 postgres postgres 16777216 May 12 16:05 00000006000000E5
-rw------- 1 postgres postgres 16777216 May 12 16:05 00000006000000E6
-rw------- 1 postgres postgres 16777216 May 12 16:05 00000006000000E7
-rw------- 1 postgres postgres 16777216 May 12 16:05 00000006000000E8
-rw------- 1 postgres postgres 16777216 May 12 16:06 00000006000000E9
-rw------- 1 postgres postgres 16777216 May 12 16:06 00000006000000EA
-rw------- 1 postgres postgres 16777216 May 12 16:06 00000006000000EB
-rw------- 1 postgres postgres 16777216 May 12 16:06 00000006000000EC
-rw------- 1 postgres postgres 16777216 May 12 16:07 00000006000000ED
-rw------- 1 postgres postgres 16777216 May 12 16:07 00000006000000EE
-rw------- 1 postgres postgres 16777216 May 12 16:07 00000006000000EF
-rw------- 1 postgres postgres 16777216 May 12 16:07 00000006000000F0
-rw------- 1 postgres postgres 16777216 May 12 16:07 00000006000000F1
-rw------- 1 postgres postgres 16777216 May 12 16:08 00000006000000F2
-rw------- 1 postgres postgres 16777216 May 12 16:08 00000006000000F3
-rw------- 1 postgres postgres 16777216 May 12 16:08 00000006000000F4
-rw------- 1 postgres postgres 16777216 May 12 16:08 00000006000000F5
-rw------- 1 postgres postgres 16777216 May 12 16:08 00000006000000F6
-rw------- 1 postgres postgres 16777216 May 12 16:09 00000006000000F7
-rw------- 1 postgres postgres 16777216 May 12 16:09 00000006000000F8
-rw------- 1 postgres postgres 16777216 May 12 16:09 00000006000000F9
-rw------- 1 postgres postgres 16777216 May 12 16:09 00000006000000FA
-rw------- 1 postgres postgres 16777216 May 12 16:09 00000006000000FB
-rw------- 1 postgres postgres 16777216 May 12 16:09 00000006000000FC
-rw------- 1 postgres postgres 16777216 May 12 16:10 00000006000000FD
-rw------- 1 postgres postgres 16777216 May 12 16:10 00000006000000FE
-rw------- 1 postgres postgres 16777216 May 12 16:10 0000000700000000
-rw------- 1 postgres postgres 16777216 May 12 16:10 0000000700000001
-rw------- 1 postgres postgres 16777216 May 12 16:10 0000000700000002
-rw------- 1 postgres postgres 16777216 May 12 16:11 0000000700000003
-rw------- 1 postgres postgres 16777216 May 12 16:11 0000000700000004
-rw------- 1 postgres postgres 16777216 May 12 16:11 0000000700000005
-rw------- 1 postgres postgres 16777216 May 12 16:11 0000000700000006
-rw------- 1 postgres postgres 16777216 May 12 16:12 0000000700000007
-rw------- 1 postgres postgres 16777216 May 12 16:12 0000000700000008
-rw------- 1 postgres postgres 16777216 May 12 16:12 0000000700000009
-rw------- 1 postgres postgres 16777216 May 12 16:12 000000070000000A
-rw------- 1 postgres postgres 16777216 May 12 16:12 000000070000000B
-rw------- 1 postgres postgres 16777216 May 12 16:13 000000070000000C
-rw------- 1 postgres postgres 16777216 May 12 16:13 000000070000000D
-rw------- 1 postgres postgres 16777216 May 12 16:13 000000070000000E
-rw------- 1 postgres postgres 16777216 May 12 16:13 000000070000000F
-rw------- 1 postgres postgres 16777216 May 12 16:13 0000000700000010
-rw------- 1 postgres postgres 16777216 May 12 16:14 0000000700000011
-rw------- 1 postgres postgres 16777216 May 12 16:14 0000000700000012
-rw------- 1 postgres postgres 16777216 May 12 16:14 0000000700000013
-rw------- 1 postgres postgres 16777216 May 12 16:14 0000000700000014
-rw------- 1 postgres postgres 16777216 May 12 16:15 0000000700000015
-rw------- 1 postgres postgres 16777216 May 12 16:15 0000000700000016
-rw------- 1 postgres postgres 16777216 May 12 16:15 0000000700000017
-rw------- 1 postgres postgres 16777216 May 12 16:15 0000000700000018
-rw------- 1 postgres postgres 16777216 May 12 16:15 0000000700000019
-rw------- 1 postgres postgres 16777216 May 12 16:16 000000070000001A
-rw------- 1 postgres postgres 16777216 May 12 16:16 000000070000001B
-rw------- 1 postgres postgres 16777216 May 12 16:16 000000070000001C
-rw------- 1 postgres postgres 16777216 May 12 16:16 000000070000001D
-rw------- 1 postgres postgres 16777216 May 12 16:17 000000070000001E
-rw------- 1 postgres postgres 16777216 May 12 16:17 000000070000001F
-rw------- 1 postgres postgres 16777216 May 12 16:17 0000000700000020
-rw------- 1 postgres postgres 16777216 May 12 16:17 0000000700000021
-rw------- 1 postgres postgres 16777216 May 12 16:18 0000000700000022
-rw------- 1 postgres postgres 16777216 May 12 16:18 0000000700000023
-rw------- 1 postgres postgres 16777216 May 12 16:18 0000000700000024
-rw------- 1 postgres postgres 16777216 May 12 16:18 0000000700000025
-rw------- 1 postgres postgres 16777216 May 12 16:19 0000000700000026
-rw------- 1 postgres postgres 16777216 May 12 16:19 0000000700000027
-rw------- 1 postgres postgres 16777216 May 12 16:19 0000000700000028
-rw------- 1 postgres postgres 16777216 May 12 16:19 0000000700000029
-rw------- 1 postgres postgres 16777216 May 12 16:20 000000070000002A
-rw------- 1 postgres postgres 16777216 May 12 16:20 000000070000002B
-rw------- 1 postgres postgres 16777216 May 12 16:20 000000070000002C
-rw------- 1 postgres postgres 16777216 May 12 16:20 000000070000002D
-rw------- 1 postgres postgres 16777216 May 12 16:20 000000070000002E
-rw------- 1 postgres postgres 16777216 May 12 16:21 000000070000002F
-rw------- 1 postgres postgres 16777216 May 12 16:21 0000000700000030
-rw------- 1 postgres postgres 16777216 May 12 16:21 0000000700000031
-rw------- 1 postgres postgres 16777216 May 12 16:21 0000000700000032
-rw------- 1 postgres postgres 16777216 May 12 16:22 0000000700000033
-rw------- 1 postgres postgres 16777216 May 12 16:22 0000000700000034
-rw------- 1 postgres postgres 16777216 May 12 16:22 0000000700000035
-rw------- 1 postgres postgres 16777216 May 12 16:22 0000000700000036
-rw------- 1 postgres postgres 16777216 May 12 16:23 0000000700000037
-rw------- 1 postgres postgres 16777216 May 12 16:23 0000000700000038
-rw------- 1 postgres postgres 16777216 May 12 16:23 0000000700000039
-rw------- 1 postgres postgres 16777216 May 12 16:23 000000070000003A
-rw------- 1 postgres postgres 16777216 May 12 16:24 000000070000003B
-rw------- 1 postgres postgres 16777216 May 12 16:24 000000070000003C
-rw------- 1 postgres postgres 16777216 May 12 16:24 000000070000003D
-rw------- 1 postgres postgres 16777216 May 12 16:24 000000070000003E
-rw------- 1 postgres postgres 16777216 May 12 16:25 000000070000003F
-rw------- 1 postgres postgres 16777216 May 12 16:25 0000000700000040
-rw------- 1 postgres postgres 16777216 May 12 16:25 0000000700000041
-rw------- 1 postgres postgres 16777216 May 12 16:25 0000000700000042
-rw------- 1 postgres postgres 16777216 May 12 16:26 0000000700000043
-rw------- 1 postgres postgres 16777216 May 12 16:26 0000000700000044
-rw------- 1 postgres postgres 16777216 May 12 16:26 0000000700000045
-rw------- 1 postgres postgres 16777216 May 12 16:26 0000000700000046
-rw------- 1 postgres postgres 16777216 May 12 16:26 0000000700000047
-rw------- 1 postgres postgres 16777216 May 12 16:27 0000000700000048
-rw------- 1 postgres postgres 16777216 May 12 16:27 0000000700000049
-rw------- 1 postgres postgres 16777216 May 12 16:27 000000070000004A
-rw------- 1 postgres postgres 16777216 May 12 16:27 000000070000004B
-rw------- 1 postgres postgres 16777216 May 12 16:28 000000070000004C
-rw------- 1 postgres postgres 16777216 May 12 16:28 000000070000004D
-rw------- 1 postgres postgres 16777216 May 12 16:28 000000070000004E
-rw------- 1 postgres postgres 16777216 May 12 16:28 000000070000004F
-rw------- 1 postgres postgres 16777216 May 12 16:29 0000000700000050
-rw------- 1 postgres postgres 16777216 May 12 16:29 0000000700000051
-rw------- 1 postgres postgres 16777216 May 12 16:29 0000000700000052
-rw------- 1 postgres postgres 16777216 May 12 16:29 0000000700000053
-rw------- 1 postgres postgres 16777216 May 12 16:30 0000000700000054
-rw------- 1 postgres postgres 16777216 May 12 16:30 0000000700000055
-rw------- 1 postgres postgres 16777216 May 12 16:30 0000000700000056
-rw------- 1 postgres postgres 16777216 May 12 16:30 0000000700000057
-rw------- 1 postgres postgres 16777216 May 12 16:31 0000000700000058
-rw------- 1 postgres postgres 16777216 May 12 16:31 0000000700000059
-rw------- 1 postgres postgres 16777216 May 12 16:31 000000070000005A
-rw------- 1 postgres postgres 16777216 May 12 16:32 000000070000005B
-rw------- 1 postgres postgres 16777216 May 12 16:32 000000070000005C
-rw------- 1 postgres postgres 16777216 May 12 16:32 000000070000005D
-rw------- 1 postgres postgres 16777216 May 12 16:32 000000070000005E
-rw------- 1 postgres postgres 16777216 May 12 16:33 000000070000005F
-rw------- 1 postgres postgres 16777216 May 12 16:33 0000000700000060
-rw------- 1 postgres postgres 16777216 May 12 16:33 0000000700000061
-rw------- 1 postgres postgres 16777216 May 12 16:33 0000000700000062
-rw------- 1 postgres postgres 16777216 May 12 16:34 0000000700000063
-rw------- 1 postgres postgres 16777216 May 12 16:34 0000000700000064
-rw------- 1 postgres postgres 16777216 May 12 16:34 0000000700000065
-rw------- 1 postgres postgres 16777216 May 12 16:34 0000000700000066
-rw------- 1 postgres postgres 16777216 May 12 16:34 0000000700000067
-rw------- 1 postgres postgres 16777216 May 12 16:35 0000000700000068
-rw------- 1 postgres postgres 16777216 May 12 16:35 0000000700000069
-rw------- 1 postgres postgres 16777216 May 12 16:35 000000070000006A
-rw------- 1 postgres postgres 16777216 May 12 16:35 000000070000006B
-rw------- 1 postgres postgres 16777216 May 12 16:36 000000070000006C
-rw------- 1 postgres postgres 16777216 May 12 16:36 000000070000006D
-rw------- 1 postgres postgres 16777216 May 12 16:36 000000070000006E
-rw------- 1 postgres postgres 16777216 May 12 16:36 000000070000006F
-rw------- 1 postgres postgres 16777216 May 12 16:45 0000000700000070

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to ma*******@postgresql.org so that your
message can get through to the mailing list cleanly

解决方案

"Jeffrey W. Baker" <jw*****@acm.org> writes:

I have configured 24 checkpoint segments,
which I expect gives me a worst-case usage in pg_xlog of 384MB.
Unfortunately, during the CREATE INDEX, pg_xlog becomes full!



Postgres version? AFAIR 7.1.2 or thereabouts would act that way,
because it wouldn''t discard log segments containing work of open
transactions.

The only reason I can think of for such behavior in a current version
is if the checkpoint isn''t completing for some reason. Have you looked
in the postmaster log to see if checkpoint is bleating about anything?

Note that your calculation is off anyway: per documentation, recent
versions will allow up to 2*checkpoint_segments+1 WAL files to exist.
This is because we save the last two checkpoints worth of data.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to ma*******@postgresql.org


On Wed, 2004-05-12 at 20:18, Tom Lane wrote:

"Jeffrey W. Baker" <jw*****@acm.org> writes:

I have configured 24 checkpoint segments,
which I expect gives me a worst-case usage in pg_xlog of 384MB.
Unfortunately, during the CREATE INDEX, pg_xlog becomes full!
Postgres version? AFAIR 7.1.2 or thereabouts would act that way,
because it wouldn''t discard log segments containing work of open
transactions.



This is 7.4.1.
The only reason I can think of for such behavior in a current version
is if the checkpoint isn''t completing for some reason. Have you looked
in the postmaster log to see if checkpoint is bleating about anything?
Oh sure, it''s bleating. Apparently my computer is too fast:

syslog:May 12 21:20:32 mistral postgres[17458]: [214-1] LOG: checkpoints are occurring too frequently (12 seconds apart)
syslog:May 12 21:20:32 mistral postgres[17458]: [214-2] HINT: Consider increasing the configuration parameter "checkpoint_segments".

That''s also what preceeded the most recent crash:

May 12 16:36:53 mistral postgres[506]: [173-1] LOG: checkpoints are occurring too frequently (16 seconds apart)
May 12 16:36:53 mistral postgres[506]: [173-2] HINT: Consider increasing the configuration parameter "checkpoint_segments".
May 12 16:37:08 mistral postgres[506]: [174-1] LOG: server process (PID 16403) was terminated by signal 6
May 12 16:37:08 mistral postgres[506]: [175-1] LOG: terminating any other active server processes
May 12 16:37:08 mistral postgres[26212]: [3-1] WARNING: terminating connection because of crash of another server process
May 12 16:37:08 mistral postgres[26212]: [3-2] DETAIL: The postmaster has commanded this server process to roll back the current transaction and exit, because another server
May 12 16:37:08 mistral postgres[26212]: [3-3] process exited abnormally and possibly corrupted shared memory.
May 12 16:37:08 mistral postgres[26212]: [3-4] HINT: In a moment you should be able to reconnect to the database and repeat your command.
May 12 16:37:08 mistral postgres[14396]: [1-1] WARNING: terminating connection because of crash of another server process
May 12 16:37:08 mistral postgres[14396]: [1-2] DETAIL: The postmaster has commanded this server process to roll back the current transaction and exit, because another server
May 12 16:37:08 mistral postgres[14396]: [1-3] process exited abnormally and possibly corrupted shared memory.
May 12 16:37:08 mistral postgres[14396]: [1-4] HINT: In a moment you should be able to reconnect to the database and repeat your command.
May 12 16:37:08 mistral postgres[14396]: [1-5] CONTEXT: writing block 56889 of relation 17142/289600495
May 12 16:37:08 mistral postgres[506]: [176-1] LOG: all server processes terminated; reinitializing
May 12 16:37:08 mistral postgres[17086]: [177-1] LOG: database system was interrupted at 2004-05-12 16:36:53 PDT
May 12 16:37:08 mistral postgres[17086]: [178-1] LOG: checkpoint record is at 6/92B32D48
May 12 16:37:08 mistral postgres[17086]: [179-1] LOG: redo record is at 6/92B32D48; undo record is at 0/0; shutdown FALSE
May 12 16:37:08 mistral postgres[17086]: [180-1] LOG: next transaction ID: 10232; next OID: 289600632
May 12 16:37:08 mistral postgres[17086]: [181-1] LOG: database system was not properly shut down; automatic recovery in progress
May 12 16:37:08 mistral postgres[17086]: [182-1] LOG: redo starts at 6/92B32D88
May 12 16:45:29 mistral postgres[17086]: [183-1] LOG: could not open file "/var/lib/postgres/data/pg_xlog/0000000700000071" (log file 7, segment 113): No such file or directory
May 12 16:45:29 mistral postgres[17086]: [184-1] LOG: redo done at 7/70FFC400
May 12 16:45:50 mistral postgres[506]: [177-1] LOG: startup process (PID 17086) was terminated by signal 6
May 12 16:45:50 mistral postgres[506]: [178-1] LOG: aborting startup due to startup process failure

I also have many "recycled" messages:

May 12 13:10:01 mistral postgres[16373]: [20-1] LOG: recycled transaction log file "0000000600000078"
May 12 13:10:01 mistral postgres[16373]: [21-1] LOG: recycled transaction log file "0000000600000079"
May 12 13:10:01 mistral postgres[16373]: [22-1] LOG: recycled transaction log file "000000060000007A"
May 12 13:10:01 mistral postgres[16373]: [23-1] LOG: recycled transaction log file "000000060000007B"
May 12 13:10:01 mistral postgres[16373]: [24-1] LOG: recycled transaction log file "000000060000007C"
May 12 13:20:03 mistral postgres[16408]: [1-1] LOG: removing transaction log file "0000000600000090"
May 12 13:20:03 mistral postgres[16408]: [2-1] LOG: removing transaction log file "0000000600000091"
Note that your calculation is off anyway: per documentation, recent
versions will allow up to 2*checkpoint_segments+1 WAL files to exist.
This is because we save the last two checkpoints worth of data.



That''s why I gave it an order of magnitude leeway. Such calculations
are always off by a factor or two.

It''s doing it again at this very moment, I get the feeling that pg_xlog
is converging on the same size as


PGDATA/base/


这篇关于在CREATE INDEX期间,pg_xlog变得非常大的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆