diff options
author | Tomas Vondra <tomas.vondra@postgresql.org> | 2020-11-11 18:37:36 +0100 |
---|---|---|
committer | Tomas Vondra <tomas.vondra@postgresql.org> | 2020-11-11 18:49:41 +0100 |
commit | 0d0626e27d56a52f78cd71a796ee2e8fe216f217 (patch) | |
tree | b5f72f8c6b4cde561564a02a89c45ac21b51a5de /src | |
parent | 171c457cd06051b5910cf357ea6a77643b69088a (diff) | |
download | postgresql-0d0626e27d56a52f78cd71a796ee2e8fe216f217.tar.gz postgresql-0d0626e27d56a52f78cd71a796ee2e8fe216f217.zip |
Remove duplicate code in brin_memtuple_initialize
Commit 8bf74967dab moved some of the code from brin_new_memtuple to
brin_memtuple_initialize, but this resulted in some of the code being
duplicate. Fix by removing the duplicate lines and backpatch to 10.
Author: Tomas Vondra
Backpatch-through: 10
Discussion: https://postgr.es/m/5eb50c97-9a8e-b691-8c40-1b2a55611c4c%40enterprisedb.com
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/access/brin/brin_tuple.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/backend/access/brin/brin_tuple.c b/src/backend/access/brin/brin_tuple.c index 66c02d5b439..dd33cfc603b 100644 --- a/src/backend/access/brin/brin_tuple.c +++ b/src/backend/access/brin/brin_tuple.c @@ -482,9 +482,6 @@ brin_memtuple_initialize(BrinMemTuple *dtuple, BrinDesc *brdesc) sizeof(BrinValues) * brdesc->bd_tupdesc->natts); for (i = 0; i < brdesc->bd_tupdesc->natts; i++) { - dtuple->bt_columns[i].bv_allnulls = true; - dtuple->bt_columns[i].bv_hasnulls = false; - dtuple->bt_columns[i].bv_attno = i + 1; dtuple->bt_columns[i].bv_allnulls = true; dtuple->bt_columns[i].bv_hasnulls = false; |