![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
When I'm doing a database load of a 5gb database, autovacuum always segfaults shortly after the load finishes. |
#2
| |||
| |||
|
|
Brian Hirt <bhirt (AT) mobygames (DOT) com> writes: When I'm doing a database load of a 5gb database, autovacuum always segfaults shortly after the load finishes. This sure looks like the same bug already fixed in 8.1.1: 2005-11-28 08:35 alvherre * src/backend/postmaster/autovacuum.c: Set a snapshot before running analyze on a single table, to avoid a crash when analyzing tables with expressional indexes. Per report from Frank van Vugt. regards, tom lane |
#3
| |||
| |||
|
|
that's strange, because I'm running 8.1.1. |

#4
| |||
| |||
|
|
Is there more information i can provide to help find the problem? |
#5
| |||
| |||
|
|
On 1/4/06, Brian Hirt <bhirt (AT) mobygames (DOT) com> wrote: that's strange, because I'm running 8.1.1. what Tom is saying is that a patch was applied after 8.1.1 was launched... |
#6
| |||
| |||
|
|
On Wed, Jan 04, 2006 at 12:20:28PM -0500, Jaime Casanova wrote: On 1/4/06, Brian Hirt <bhirt (AT) mobygames (DOT) com> wrote: that's strange, because I'm running 8.1.1. what Tom is saying is that a patch was applied after 8.1.1 was launched... Is that what Tom is saying? The commit message he posted had a date of 2005-11-28; 8.1.1 wasn't tagged until 2005-12-08. -- Michael Fuhr |

#7
| |||
| |||
|
|
Modifiers ------------------+------------------------ |
|
Brian Hirt <bhirt (AT) mobygames (DOT) com> writes: Is there more information i can provide to help find the problem? How about the schema of the table in question? If the backtrace is to be trusted, it's OID 32465292. Does it crash if you ANALYZE that table manually? regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 5: don't forget to increase your free space map settings |
#8
| |||
| |||
|
|
I can analyze that table without problems. I don't know if it's the same table every time. I'm trying to set up a development environment where i can test this stuff better without messing up our production systems. The table does have an expresional index. |
#9
| |||
| |||
|
|
Brian Hirt <bhirt (AT) mobygames (DOT) com> writes: I can analyze that table without problems. I don't know if it's the same table every time. I'm trying to set up a development environment where i can test this stuff better without messing up our production systems. The table does have an expresional index. I've managed to reproduce this: the triggering condition is that a single autovac iteration has to VACUUM one table and then ANALYZE (no vac) another table that has an expressional index with a plpgsql function. It looks like we missed a path of control where ActiveSnapshot has to be re-set-up, but I'm not clear where. regards, tom lane |
#10
| |||
| |||
|
|
I was just writing to let you know I created an easily reproducible test case too, but I guess you don't need that now. |
|
Also, if a patch is produced, I'd love to get a copy of it. We just upgraded our production servers to 8.1.1 this morning (this issue never came up during testing) and I'l like to get this in there because it's likely to happen again. |
![]() |
| Thread Tools | |
| Display Modes | |
| |