Hi, On 2023-03-13 21:22:29 +0100, Peter Eisentraut wrote: > On 12.03.23 01:11, Andres Freund wrote: > > Have you done benchmarks of some simple workloads to verify this doesn't > > cause > > slowdowns (when not using encryption, obviously)? printtup.c is a > > performance > > sensitive portion for simple queries, particularly when they return multiple > > columns. > > The additional code isn't used when column encryption is off, so there > shouldn't be any impact.
It adds branches, and it makes tupledescs wider. In tight spots, such as printtup, that can hurt, even if the branches aren't ever entered. Greetings, Andres Freund