From 8121ab88e7dfe6ebe56c58257733354cb85f092c Mon Sep 17 00:00:00 2001 From: Amit Kapila Date: Wed, 27 Jun 2018 08:16:13 +0530 Subject: Cosmetic improvements for faster column addition. Changed the name of few structure members for the sake of clarity and removed spurious whitespace. Reported-by: Amit Kapila Author: Amit Kapila, based on suggestion by Andrew Dunstan Reviewed-by: Alvaro Herrera Discussion: https://postgr.es/m/CAA4eK1K2znsFpC+NQ9A4vxT4uDxADN4RmvHX0L6Y=aHVo9gB4Q@mail.gmail.com --- src/backend/utils/cache/relcache.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/backend/utils/cache') diff --git a/src/backend/utils/cache/relcache.c b/src/backend/utils/cache/relcache.c index d85dc925057..6125421d39a 100644 --- a/src/backend/utils/cache/relcache.c +++ b/src/backend/utils/cache/relcache.c @@ -614,18 +614,18 @@ RelationBuildTupleDesc(Relation relation) if (attp->attbyval) { /* for copy by val just copy the datum direct */ - attrmiss[attnum - 1].ammissing = missval; + attrmiss[attnum - 1].am_value = missval; } else { /* otherwise copy in the correct context */ oldcxt = MemoryContextSwitchTo(CacheMemoryContext); - attrmiss[attnum - 1].ammissing = datumCopy(missval, - attp->attbyval, - attp->attlen); + attrmiss[attnum - 1].am_value = datumCopy(missval, + attp->attbyval, + attp->attlen); MemoryContextSwitchTo(oldcxt); } - attrmiss[attnum - 1].ammissingPresent = true; + attrmiss[attnum - 1].am_present = true; } } need--; -- cgit v1.2.3