aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/cache/relcache.c
diff options
context:
space:
mode:
authorAmit Kapila <akapila@postgresql.org>2018-06-27 08:16:13 +0530
committerAmit Kapila <akapila@postgresql.org>2018-06-27 08:16:13 +0530
commit8121ab88e7dfe6ebe56c58257733354cb85f092c (patch)
treee36f9415c6c314fbc6555f3b42d9681ef9420f07 /src/backend/utils/cache/relcache.c
parentf49a80c481f74fa81407dce8e51dea6956cb64f8 (diff)
downloadpostgresql-8121ab88e7dfe6ebe56c58257733354cb85f092c.tar.gz
postgresql-8121ab88e7dfe6ebe56c58257733354cb85f092c.zip
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
Diffstat (limited to 'src/backend/utils/cache/relcache.c')
-rw-r--r--src/backend/utils/cache/relcache.c10
1 files changed, 5 insertions, 5 deletions
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--;