Re: unlogged tables - Mailing list pgsql-hackers

From Robert Haas
Subject Re: unlogged tables
Date
Msg-id AANLkTimax_L3heKbsOzNMn2SnheToJTahzgP6bHQZRuS@mail.gmail.com
Whole thread Raw
In response to Re: unlogged tables  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
List pgsql-hackers
On Sat, Dec 18, 2010 at 12:27 PM, Kevin Grittner
<Kevin.Grittner@wicourts.gov> wrote:
> Robert Haas  wrote:
>
>> If there's any third-party code out there that is checking
>> rd_istemp, it likely also needs to be revised to check whether
>> WAL-logging is needed, not whether the relation is temp. The way
>> I've coded it, such code will fail to compile, and can be very
>> easily fixed by substituting a call to RelationNeedsWAL() or
>> RelationUsesLocalBuffers() or RelationUsesTempNamespace(),
>> depending on which property the caller actually cares about.
>
> Hmm...  This broke the SSI patch, which was using rd_istemp to omit
> conflict checking where it was set to true.  The property I care
> about is whether tuples in one backend can be read by an transaction
> in a different backend, which I assumed would not be true for
> temporary tables.  Which of the above would be appropriate for that
> use?

RelationUsesLocalBuffers().

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


pgsql-hackers by date:

Previous
From: Jan Urbański
Date:
Subject: Re: exceptions not present in plpy with Python 3
Next
From: Dimitri Fontaine
Date:
Subject: Extensions, patch v20 (bitrot fixes) (was: Extensions, patch v19 (encoding brainfart fix))