Re: [HACKERS] pgsql: Improve performance of SendRowDescriptionMessage.

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: Noah Misch <noah@leadboat.com>, pgsql-committers@postgresql.org
Date: 2017-10-13T17:48:07Z
Lists: pgsql-hackers
I wrote:
> Anyway, I will go make the sizeof() usages consistent, just to satisfy
> my own uncontrollable neatnik-ism.  Assuming that hornet stays red,
> which is probable, we should disable "restrict" for that compiler.

As expected, that didn't fix it.  Andres, are you going to put in
a disable?  Do we know exactly what we want to test for that?

			regards, tom lane


Commits

  1. Force "restrict" not to be used when compiling with xlc.

  2. Rely on sizeof(typename) rather than sizeof(variable) in pqformat.h.

  3. Use C99 restrict via pg_restrict, rather than restrict directly.

  4. Improve performance of SendRowDescriptionMessage.

  5. Partially flatten struct tupleDesc so that it can be used in DSM.

  6. Remove useless duplicate inclusions of system header files.