aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/common/heaptuple.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2023-10-10 07:50:15 +0200
committerPeter Eisentraut <peter@eisentraut.org>2023-10-10 07:50:43 +0200
commit1d91d24d9a831be0bb90ec71934f735c52456c57 (patch)
tree47c9ba51a493bb78cf6695fdf815ea15d2ca24f5 /src/backend/access/common/heaptuple.c
parentfc4089f3c65a5f1b413a3299ba02b66a8e5e37d0 (diff)
downloadpostgresql-1d91d24d9a831be0bb90ec71934f735c52456c57.tar.gz
postgresql-1d91d24d9a831be0bb90ec71934f735c52456c57.zip
Add const to values and nulls arguments
This excludes any changes that would change the external AM APIs. Reviewed-by: Aleksander Alekseev <aleksander@timescale.com> Discussion: https://www.postgresql.org/message-id/flat/14c31f4a-0347-0805-dce8-93a9072c05a5%40eisentraut.org
Diffstat (limited to 'src/backend/access/common/heaptuple.c')
-rw-r--r--src/backend/access/common/heaptuple.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/backend/access/common/heaptuple.c b/src/backend/access/common/heaptuple.c
index ef246c901e7..d6a4ddfd51f 100644
--- a/src/backend/access/common/heaptuple.c
+++ b/src/backend/access/common/heaptuple.c
@@ -205,8 +205,8 @@ getmissingattr(TupleDesc tupleDesc,
*/
Size
heap_compute_data_size(TupleDesc tupleDesc,
- Datum *values,
- bool *isnull)
+ const Datum *values,
+ const bool *isnull)
{
Size data_length = 0;
int i;
@@ -390,7 +390,7 @@ fill_val(Form_pg_attribute att,
*/
void
heap_fill_tuple(TupleDesc tupleDesc,
- Datum *values, bool *isnull,
+ const Datum *values, const bool *isnull,
char *data, Size data_size,
uint16 *infomask, bits8 *bit)
{
@@ -1106,8 +1106,8 @@ heap_copy_tuple_as_datum(HeapTuple tuple, TupleDesc tupleDesc)
*/
HeapTuple
heap_form_tuple(TupleDesc tupleDescriptor,
- Datum *values,
- bool *isnull)
+ const Datum *values,
+ const bool *isnull)
{
HeapTuple tuple; /* return tuple */
HeapTupleHeader td; /* tuple data */
@@ -1200,9 +1200,9 @@ heap_form_tuple(TupleDesc tupleDescriptor,
HeapTuple
heap_modify_tuple(HeapTuple tuple,
TupleDesc tupleDesc,
- Datum *replValues,
- bool *replIsnull,
- bool *doReplace)
+ const Datum *replValues,
+ const bool *replIsnull,
+ const bool *doReplace)
{
int numberOfAttributes = tupleDesc->natts;
int attoff;
@@ -1269,9 +1269,9 @@ HeapTuple
heap_modify_tuple_by_cols(HeapTuple tuple,
TupleDesc tupleDesc,
int nCols,
- int *replCols,
- Datum *replValues,
- bool *replIsnull)
+ const int *replCols,
+ const Datum *replValues,
+ const bool *replIsnull)
{
int numberOfAttributes = tupleDesc->natts;
Datum *values;
@@ -1442,8 +1442,8 @@ heap_freetuple(HeapTuple htup)
*/
MinimalTuple
heap_form_minimal_tuple(TupleDesc tupleDescriptor,
- Datum *values,
- bool *isnull)
+ const Datum *values,
+ const bool *isnull)
{
MinimalTuple tuple; /* return tuple */
Size len,