From: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
---|---|
To: | Nico Williams <nico(at)cryptonector(dot)com> |
Cc: | Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>, Jim Mlodgenski <jimmy76(at)gmail(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, Craig Ringer <craig(at)2ndquadrant(dot)com>, Yugo Nagata <nagata(at)sraoss(dot)co(dot)jp>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>, Fabrízio de Royes Mello <fabriziomello(at)gmail(dot)com> |
Subject: | Re: [PATCH] A hook for session start |
Date: | 2017-10-07 04:53:31 |
Message-ID: | CAFj8pRCaYX=0V_=LAsnDAk5Nc4+iLzdPe4P0jZrFZZkFqRjtDA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
2017-10-07 6:49 GMT+02:00 Nico Williams <nico(at)cryptonector(dot)com>:
> On Sat, Oct 07, 2017 at 05:44:00AM +0200, Pavel Stehule wrote:
> > 2017-10-06 21:36 GMT+02:00 Nico Williams <nico(at)cryptonector(dot)com>:
> > > But the nice thing about them is that you need only create them once,
> so
> > > leave them in the catalog. Stats about them should not be gathered nor
> > > stored, since they could be different per-session.
> >
> > Unfortunately one field from pg_class are not static - reltuples should
> be
> > per session.
>
> It's "only an estimate" "used by the query planner". We could estimate
> zero for global temp tables, and the query planner can get the true
> value from an internal temp table.
>
It can be solution.
> > But it can be moved to different table
>
> That too, if it's OK.
>
> Nico
> --
>
From | Date | Subject | |
---|---|---|---|
Next Message | Ashutosh Sharma | 2017-10-07 05:01:17 | dead or outdated URLs found in win32.h |
Previous Message | Nico Williams | 2017-10-07 04:49:28 | Re: [PATCH] A hook for session start |