Re: [PATCH] A hook for session start
Craig Ringer <craig@2ndquadrant.com>
From: Craig Ringer <craig@2ndquadrant.com>
To: Pavel Stehule <pavel.stehule@gmail.com>
Cc: Nico Williams <nico@cryptonector.com>, Peter Eisentraut <peter.eisentraut@2ndquadrant.com>, Jim Mlodgenski <jimmy76@gmail.com>, Robert Haas <robertmhaas@gmail.com>, Yugo Nagata <nagata@sraoss.co.jp>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>, Fabrízio de Royes Mello <fabriziomello@gmail.com>
Date: 2017-10-06T03:04:38Z
Lists: pgsql-hackers
On 6 October 2017 at 10:52, Pavel Stehule <pavel.stehule@gmail.com> wrote: > It is better to work on GLOBAL TEMP tables. > > Current TEMP tables, if you do it for any session has pretty significant > overhead - with possible risk of performance lost (system catalog bloat). > > pretty significant performance issue of my customers are related to temp > tables usage (under high load) I've seen the same thing too. Especially when combined with logical decoding, where IIRC we mark transactions as having catalog changes due to temp tables. Sometimes the catalog bloat can be truly horrible when a user has hundreds of plpgsql functions that all like to make temp tables. -- Craig Ringer http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services
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