I think I am on to something.

The funny way I update the system tables with vacuum optimization
information is wrong, I think, and the new cache code is properly
complaining about it.

I will keep testing.  If I comment out the following code, the vacuum works.
Is there a better way to do this?

---------------------------------------------------------------------------

    /* XXX -- after write, should invalidate relcache in other backends */
    WriteNoReleaseBuffer(ItemPointerGetBlockNumber(&rtup->t_ctid));
    
    /*
     * invalidating system relations confuses the function cache of
     * pg_operator and pg_opclass, bjm
     */
    if (!IsSystemRelationName(pgcform->relname.data))
        RelationInvalidateHeapTuple(rd, rtup);

-- 
  Bruce Momjian                        |  http://www.op.net/~candle
  maillist@candle.pha.pa.us            |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026


Wed, 7 Oct 1998 22:23:19 -0400 (EDT)
Bruce Momjian <maillist@candle.pha.pa.us>
vacuum crash
I am wrong here.  There is something else wrong.


> I think I am on to something.
> 
> The funny way I update the system tables with vacuum optimization
> information is wrong, I think, and the new cache code is properly
> complaining about it.
> 
> I will keep testing.  If I comment out the following code, the vacuum works.
> Is there a better way to do this?
> 
> ---------------------------------------------------------------------------
> 
>     /* XXX -- after write, should invalidate relcache in other backends */
>     WriteNoReleaseBuffer(ItemPointerGetBlockNumber(&rtup->t_ctid));
>     
>     /*
>      * invalidating system relations confuses the function cache of
>      * pg_operator and pg_opclass, bjm
>      */
>     if (!IsSystemRelationName(pgcform->relname.data))
>         RelationInvalidateHeapTuple(rd, rtup);
> 
> -- 
>   Bruce Momjian                        |  http://www.op.net/~candle
>   maillist@candle.pha.pa.us            |  (610) 853-3000
>   +  If your life is a hard drive,     |  830 Blythe Avenue
>   +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026
> 
> 
> 


-- 
  Bruce Momjian                        |  http://www.op.net/~candle
  maillist@candle.pha.pa.us            |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026


Thu, 8 Oct 1998 00:44:58 -0400 (EDT)
Bruce Momjian <maillist@candle.pha.pa.us>
Re: [HACKERS] vacuum crash