Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit525e83b

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 thearray "const" as well, but this would require multiple API changes anddoes not seem to be worth the notational inconvenience.
1 parent3985031 commit525e83b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/backend/catalog/heap.c

Lines changed: 3 additions & 3 deletions
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-
staticForm_pg_attributeSysAtt[]= {&a1,&a2,&a3,&a4,&a5,&a6,&a7};
144+
staticconstForm_pg_attributeSysAtt[]= {&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
booloidislocal,
441441
intoidinhcount)
442442
{
443-
Form_pg_attribute*dpp;
443+
constForm_pg_attribute*dpp;
444444
inti;
445445
HeapTupletup;
446446
Relationrel;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp