"=?utf-8?B?6LCt5b+g5rab?=" <zhongtao(dot)tan(at)seaboxdata(dot)com> writes:
> The performance of creating a gin index before inserting data is different from that of inserting data after creating a gin index.
This isn't terribly surprising. Read
https://www.postgresql.org/docs/current/gin.html#GIN-FAST-UPDATE
There's also useful info in
https://www.postgresql.org/docs/current/gin.html#GIN-TIPS
regards, tom lane