diff options
author | Neil Conway <neilc@samurai.com> | 2005-07-28 07:38:33 +0000 |
---|---|---|
committer | Neil Conway <neilc@samurai.com> | 2005-07-28 07:38:33 +0000 |
commit | 525e83bea30c69997d4a9a4b981981e516cbcd36 (patch) | |
tree | 14d74827409726410a64df9de458fb76b729c999 | |
parent | 39850313e2e02a47dcfe834e6720d1235778f0aa (diff) | |
download | postgresql-525e83bea30c69997d4a9a4b981981e516cbcd36.tar.gz postgresql-525e83bea30c69997d4a9a4b981981e516cbcd36.zip |
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.
-rw-r--r-- | src/backend/catalog/heap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/catalog/heap.c b/src/backend/catalog/heap.c index 9b95f3c2d70..324e20026e3 100644 --- a/src/backend/catalog/heap.c +++ b/src/backend/catalog/heap.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/catalog/heap.c,v 1.287 2005/07/13 22:46:09 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/catalog/heap.c,v 1.288 2005/07/28 07:38:33 neilc Exp $ * * * INTERFACE ROUTINES @@ -141,7 +141,7 @@ static FormData_pg_attribute a7 = { true, 'p', 'i', true, false, false, true, 0 }; -static Form_pg_attribute SysAtt[] = {&a1, &a2, &a3, &a4, &a5, &a6, &a7}; +static const Form_pg_attribute SysAtt[] = {&a1, &a2, &a3, &a4, &a5, &a6, &a7}; /* * This function returns a Form_pg_attribute pointer for a system attribute. @@ -440,7 +440,7 @@ AddNewAttributeTuples(Oid new_rel_oid, bool oidislocal, int oidinhcount) { - Form_pg_attribute *dpp; + const Form_pg_attribute *dpp; int i; HeapTuple tup; Relation rel; |