From: | Jim Nasby <jim(at)nasby(dot)net> |
---|---|
To: | Robert Haas <robertmhaas(at)gmail(dot)com> |
Cc: | Bruce Momjian <bruce(at)momjian(dot)us>, Simon Riggs <simon(at)2ndquadrant(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Shared invalidation cache messages for temporary tables |
Date: | 2011-03-16 22:05:06 |
Message-ID: | 17A814D1-3355-4B98-AFD6-C1D4EBAE235C@nasby.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Mar 14, 2011, at 9:29 AM, Robert Haas wrote:
> On Mon, Mar 14, 2011 at 10:21 AM, Bruce Momjian <bruce(at)momjian(dot)us> wrote:
>>> Since your original email is fairly unclear about what you think the
>>> problem is, it's a bit hard to speculate here, but like Simon, I don't
>>> see any obvious problem here. Maybe you're asking not so much about
>>> inserts, updates, or deletes into temporary tables but about creating
>>> and making modifications to them, which will generate catcache and
>>> relcache flushes when the pg_class/pg_attribute entries are updated.
>>> But I don't think those invalidation messages can be optimized away,
>>> since other backends can access temporary tables of other sessions in
>>> limited ways - for example, they can drop them.
>>
>> Sorry, yes that was my point --- should we be doing as much cache
>> invalidation traffic for temporary tables as we are doing? I think you
>> are saying we are fine and there are no optimizations possible.
>
> Yeah, I think so. I mean, if you have a concrete example of this
> causing a problem, then we can look into it, but my intuition is that
> it's OK. Programmers intuition are notoriously wrong, of course, so
> we're all just shooting in the dark until we have something to
> measure.
Sounds like there should be a comment somewhere in the code that explains why we actually need those messages...
--
Jim C. Nasby, Database Architect jim(at)nasby(dot)net
512.569.9461 (cell) http://jim.nasby.net
From | Date | Subject | |
---|---|---|---|
Next Message | Dimitri Fontaine | 2011-03-16 22:23:37 | Re: Sync Rep and shutdown Re: Sync Rep v19 |
Previous Message | Bruce Momjian | 2011-03-16 22:00:43 | Re: Rectifying wrong Date outputs |