Re: Reduce build times of pg_trgm GIN indexes
Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
From: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
To: David Geier <geidav.pg@gmail.com>
Cc: Peter Eisentraut <peter@eisentraut.org>, Heikki Linnakangas <hlinnaka@iki.fi>, Matthias van de Meent <boekewurm+postgres@gmail.com>, pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2026-04-13T17:15:52Z
Lists: pgsql-hackers
Hi, On Mon, Apr 13, 2026 at 05:03:11PM +0200, David Geier wrote: > Hi! > > On 13.04.2026 13:04, Bertrand Drouvot wrote: > > Hi, > > > > On Mon, Apr 13, 2026 at 11:41:02AM +0200, Peter Eisentraut wrote: > >> On 09.04.26 13:28, Bertrand Drouvot wrote: > >>> > >>> This commit makes use of StaticAssertStmt() that has been deprecated in > >>> d50c86e74375. The attached, fixes it. > > I cannot find a comment close to StaticAssertStmt() that says it got > deprecated. The comment on top of it's definition is: " /* * StaticAssertStmt() was previously used to make static assertions work as a * statement, but its use is now deprecated. */ " > Is the goal to completely get rid of StaticAssertStmt()? According to its comment, I'd say so. > > Yeah that looks better to not lose the connection with palloc0_array() here. > > Done that way in the attached and adding new braces to avoid warning from > > -Wdeclaration-after-statement. > > Looks good to me. Thanks for looking at it! Regards, -- Bertrand Drouvot PostgreSQL Contributors Team RDS Open Source Databases Amazon Web Services: https://aws.amazon.com
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Change PointerGetDatum() back to a macro
- d65995cbc6e1 19 (unreleased) landed
-
Replace deprecated StaticAssertStmt() with StaticAssertDecl()
- 66ad764c8d51 19 (unreleased) landed
-
Optimize sorting and deduplicating trigrams
- 9f3755ea07aa 19 (unreleased) landed
-
Optimize sort and deduplication in ginExtractEntries()
- 6f5ad00ab763 19 (unreleased) landed
-
Inline ginCompareAttEntries for speed
- bba81f9d3d4f 19 (unreleased) landed