pgsql: Fix bogus size calculation introduced by commit cc5f81366.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix bogus size calculation introduced by commit cc5f81366.
Date: 2017-09-17 15:35:32
Message-ID: E1dtbbY-0007pP-2s@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix bogus size calculation introduced by commit cc5f81366.

The elements of RecordCacheArray are TupleDesc, not TupleDesc *.
Those are actually the same size, so that this error is harmless,
but it's still wrong --- and it might bite us someday, if TupleDesc
ever became a struct, say.

Per Coverity.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/cad22075bc2ce9c1fbe61e8d3969d4dbdb5bc1f3

Modified Files
--------------
src/backend/utils/cache/typcache.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2017-09-17 16:16:52 pgsql: Ensure that BEFORE STATEMENT triggers fire the right number of t
Previous Message Andres Freund 2017-09-17 08:07:52 Re: Re: [COMMITTERS] pgsql: Perform only one ReadControlFile() during startup.