Re: [RFC] Should smgrtruncate() avoid sending sinval message for temp relations - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [RFC] Should smgrtruncate() avoid sending sinval message for temp relations
Date
Msg-id 29607.1406128116@sss.pgh.pa.us
Whole thread Raw
In response to [RFC] Should smgrtruncate() avoid sending sinval message for temp relations  ("MauMau" <maumau307@gmail.com>)
Responses Re: [RFC] Should smgrtruncate() avoid sending sinval message for temp relations  ("MauMau" <maumau307@gmail.com>)
List pgsql-hackers
"MauMau" <maumau307@gmail.com> writes:
> Looking at smgrtruncate(), the sinval message is sent even when the 
> truncated relation is a temporary relation.  However, I think the sinval 
> message is not necessary for temp relations, because each session doesn't 
> see the temp relations of other sessions.

This seems like a pretty unsafe suggestion, because the smgr level doesn't
know or care whether relations are temp; files are files.  In any case it
would only paper over one specific instance of whatever problem you're
worried about, because sinval messages definitely do need to be sent in
general.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Rohit Goyal
Date:
Subject: Least Active Transaction ID function
Next
From: Simon Riggs
Date:
Subject: Re: Production block comparison facility