Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 525e83b

Browse files
author
Neil Conway
committed
Mark a static array "const" to move a few bytes from the "data" segment
to the "text" segment. It would be possible to mark the elements of the array "const" as well, but this would require multiple API changes and does not seem to be worth the notational inconvenience.
1 parent 3985031 commit 525e83b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/backend/catalog/heap.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/catalog/heap.c,v 1.287 2005/07/13 22:46:09 tgl Exp $
11+
* $PostgreSQL: pgsql/src/backend/catalog/heap.c,v 1.288 2005/07/28 07:38:33 neilc Exp $
1212
*
1313
*
1414
* INTERFACE ROUTINES
@@ -141,7 +141,7 @@ static FormData_pg_attribute a7 = {
141141
true, 'p', 'i', true, false, false, true, 0
142142
};
143143

144-
static Form_pg_attribute SysAtt[] = {&a1, &a2, &a3, &a4, &a5, &a6, &a7};
144+
static const Form_pg_attribute SysAtt[] = {&a1, &a2, &a3, &a4, &a5, &a6, &a7};
145145

146146
/*
147147
* This function returns a Form_pg_attribute pointer for a system attribute.
@@ -440,7 +440,7 @@ AddNewAttributeTuples(Oid new_rel_oid,
440440
bool oidislocal,
441441
int oidinhcount)
442442
{
443-
Form_pg_attribute *dpp;
443+
const Form_pg_attribute *dpp;
444444
int i;
445445
HeapTuple tup;
446446
Relation rel;

0 commit comments

Comments
 (0)