~ubuntu-branches/ubuntu/natty/postgresql-8.4/natty-security

« back to all changes in this revision

Viewing changes to src/backend/access/common/tupdesc.c

Tags: upstream-8.4.0
ImportĀ upstreamĀ versionĀ 8.4.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
 *
9
9
 *
10
10
 * IDENTIFICATION
11
 
 *        $PostgreSQL: pgsql/src/backend/access/common/tupdesc.c,v 1.125 2009/01/22 20:16:00 tgl Exp $
 
11
 *        $PostgreSQL: pgsql/src/backend/access/common/tupdesc.c,v 1.126 2009/06/11 14:48:53 momjian Exp $
12
12
 *
13
13
 * NOTES
14
14
 *        some of the executor utility code such as "ExecTypeFromTL" should be
55
55
         * pointers.
56
56
         *
57
57
         * Note: Only the fixed part of pg_attribute rows is included in tuple
58
 
         * descriptors, so we only need ATTRIBUTE_FIXED_PART_SIZE space
59
 
         * per attr.  That might need alignment padding, however.
 
58
         * descriptors, so we only need ATTRIBUTE_FIXED_PART_SIZE space per attr.
 
59
         * That might need alignment padding, however.
60
60
         */
61
61
        attroffset = sizeof(struct tupleDesc) + natts * sizeof(Form_pg_attribute);
62
62
        attroffset = MAXALIGN(attroffset);