Re: Temp rows - is it possible? - Mailing list pgsql-general

From Bruce Momjian
Subject Re: Temp rows - is it possible?
Date
Msg-id 200311120410.hAC4AV811057@candle.pha.pa.us
Whole thread Raw
In response to Re: Temp rows - is it possible?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Tom Lane wrote:
> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > Tom Lane wrote:
> >> We recently decided we had to forbid foreign-key references from temp
> >> tables to permanent tables because of this effect.  I wonder whether
> >> we won't end up forbidding temp tables as children of permanent tables
> >> too.
>
> > Yep, I think we will have to do that.  TODO item?
>
> Plan B would be to arrange for the planner to ignore temp tables of
> other backends whenever it is searching for child tables.  Then the
> behavior would be predictable: you never see any rows inserted in other
> people's temp child tables (and cannot update or delete 'em, either).
> I'm not sure if this is the behavior the OP wanted, but it seems at
> least marginally useful.

Added to TODO:

    * Ignore temporary tables from other session when processing
      inheritance

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-general by date:

Previous
From: Barry C.Hawkins
Date:
Subject: Re: (Solved) Failure of make for 7.3.4 on Mac OS 10.3 Panther
Next
From: Tom Lane
Date:
Subject: Re: plperl/createlang issue