Re: Improve catcache/syscache performance.
Andres Freund <andres@anarazel.de>
From: Andres Freund <andres@anarazel.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Robert Haas <robertmhaas@gmail.com>, "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2017-10-13T18:17:19Z
Lists: pgsql-hackers
On 2017-10-13 14:07:54 -0400, Tom Lane wrote: > One idea might be to see if we can precalculate all the control data > needed for the caches and set it up as compile-time constants, > a la Gen_fmgrtab.pl, rather than reading it from the catalogs during > startup. That would make the code less dependent on initialization > order rather than more so. Hm. That sounds somewhat enticing. You're thinking of doing so for catcaches alone, or something grander, including the relcaches? I'd assume the former? For catcaches the hardest part probably is that we need a TupleDesc. Per type function lookups, oids, should be fairly easy in contrast. Greetings, Andres Freund
Commits
-
Improve sys/catcache performance.
- 141fd1b66ce6 11.0 landed
-
Add pg_noinline macro to c.h.
- a0247e7a11bb 11.0 landed
-
Add inline murmurhash32(uint32) function.
- 791961f59b79 11.0 landed