From: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | pgsql-hackers(at)postgreSQL(dot)org |
Subject: | Re: autovacuum crash due to null pointer |
Date: | 2008-07-17 17:17:53 |
Message-ID: | 20080717171753.GI3934@alvh.no-ip.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Tom Lane wrote:
> Alvaro Herrera <alvherre(at)commandprompt(dot)com> writes:
> > I'm having a hard time reproducing this problem; I added a pg_usleep()
> > just before get_rel_name to have the chance to drop the table, but
> > strangely enough it doesn't return NULL. It seems that the cache entry
> > is not getting invalidated. Maybe there's something else that's needed
> > to reproduce the crash.
>
> I think cache invals would get noticed at points where we had to open
> some relation, so you probably need the sleep somewhere earlier than
> that. Or just throw in an AcceptInvalidationMessages() after the sleep.
AcceptInvalidationMessages did the trick.
Patches for 8.3 and HEAD attached.
--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.
Attachment | Content-Type | Size |
---|---|---|
autovac-dropped-table-HEAD.patch | text/x-diff | 10.1 KB |
autovac-dropped-table-83.patch | text/x-diff | 2.3 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Jonah H. Harris | 2008-07-17 17:48:32 | Re: [PATCH]-hash index improving |
Previous Message | David E. Wheeler | 2008-07-17 17:07:31 | Re: PATCH: CITEXT 2.0 v4 |