diff options
author | Andres Freund <andres@anarazel.de> | 2019-01-14 16:15:20 -0800 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2019-01-14 16:25:50 -0800 |
commit | 774a975c9a5903d271a727a260efd8c31125b9d6 (patch) | |
tree | ab4f9c018b82f5a4c97917470ea034fb4dfebd72 /src/backend/jit/llvm | |
parent | e451dd5521966516110eb1761342ae4a1380b19d (diff) | |
download | postgresql-774a975c9a5903d271a727a260efd8c31125b9d6.tar.gz postgresql-774a975c9a5903d271a727a260efd8c31125b9d6.zip |
Make naming of tupdesc related structs more consistent with the rest of PG.
We usually don't change the name of structs between the struct name
itself and the name of the typedef. Additionally, structs that are
usually used via a typedef that hides being a pointer, are commonly
suffixed Data. Change tupdesc code to follow those convention.
This is triggered by a future patch that intends to forward declare
TupleDescData in another header - keeping with the naming scheme makes
that easier to understand.
Author: Andres Freund
Discussion: https://postgr.es/m/20190114000701.y4ttcb74jpskkcfb@alap3.anarazel.de
Diffstat (limited to 'src/backend/jit/llvm')
-rw-r--r-- | src/backend/jit/llvm/llvmjit.c | 4 | ||||
-rw-r--r-- | src/backend/jit/llvm/llvmjit_types.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/jit/llvm/llvmjit.c b/src/backend/jit/llvm/llvmjit.c index 03663353b37..6b9aaf49c68 100644 --- a/src/backend/jit/llvm/llvmjit.c +++ b/src/backend/jit/llvm/llvmjit.c @@ -63,7 +63,7 @@ LLVMTypeRef StructItemPointerData; LLVMTypeRef StructBlockId; LLVMTypeRef StructFormPgAttribute; LLVMTypeRef StructTupleConstr; -LLVMTypeRef StructtupleDesc; +LLVMTypeRef StructTupleDescData; LLVMTypeRef StructTupleTableSlot; LLVMTypeRef StructHeapTupleTableSlot; LLVMTypeRef StructMinimalTupleTableSlot; @@ -816,7 +816,7 @@ llvm_create_types(void) StructHeapTupleTableSlot = load_type(mod, "StructHeapTupleTableSlot"); StructMinimalTupleTableSlot = load_type(mod, "StructMinimalTupleTableSlot"); StructHeapTupleData = load_type(mod, "StructHeapTupleData"); - StructtupleDesc = load_type(mod, "StructtupleDesc"); + StructTupleDescData = load_type(mod, "StructTupleDescData"); StructAggState = load_type(mod, "StructAggState"); StructAggStatePerGroupData = load_type(mod, "StructAggStatePerGroupData"); StructAggStatePerTransData = load_type(mod, "StructAggStatePerTransData"); diff --git a/src/backend/jit/llvm/llvmjit_types.c b/src/backend/jit/llvm/llvmjit_types.c index 51cc3cbcb18..79949829721 100644 --- a/src/backend/jit/llvm/llvmjit_types.c +++ b/src/backend/jit/llvm/llvmjit_types.c @@ -61,7 +61,7 @@ MemoryContextData StructMemoryContextData; TupleTableSlot StructTupleTableSlot; HeapTupleTableSlot StructHeapTupleTableSlot; MinimalTupleTableSlot StructMinimalTupleTableSlot; -struct tupleDesc StructtupleDesc; +TupleDescData StructTupleDescData; /* |