Re: [PATCH] A hook for session start
Pavel Stehule <pavel.stehule@gmail.com>
From: Pavel Stehule <pavel.stehule@gmail.com>
To: Nico Williams <nico@cryptonector.com>
Cc: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>, Jim Mlodgenski <jimmy76@gmail.com>, Robert Haas <robertmhaas@gmail.com>, Craig Ringer <craig@2ndquadrant.com>, Yugo Nagata <nagata@sraoss.co.jp>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>, Fabrízio de Royes Mello <fabriziomello@gmail.com>
Date: 2017-10-07T04:53:31Z
Lists: pgsql-hackers
2017-10-07 6:49 GMT+02:00 Nico Williams <nico@cryptonector.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@cryptonector.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 > -- >
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Add hooks for session start and session end, take two
- e788bd924c19 13.0 landed