mirror of
https://github.com/postgres/postgres.git
synced 2025-11-10 17:42:29 +03:00
Re-run pgindent, fixing a problem where comment lines after a blank
comment line where output as too long, and update typedefs for /lib directory. Also fix case where identifiers were used as variable names in the backend, but as typedefs in ecpg (favor the backend for indenting). Backpatch to 8.1.X.
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/access/common/heaptuple.c,v 1.103 2005/11/20 19:49:06 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/access/common/heaptuple.c,v 1.104 2005/11/22 18:17:05 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -512,11 +512,11 @@ nocachegetattr(HeapTuple tuple,
|
||||
/*
|
||||
* Now we know that we have to walk the tuple CAREFULLY.
|
||||
*
|
||||
* Note - This loop is a little tricky. For each non-null attribute, we
|
||||
* have to first account for alignment padding before the attr, then
|
||||
* advance over the attr based on its length. Nulls have no storage
|
||||
* and no alignment padding either. We can use/set attcacheoff until
|
||||
* we pass either a null or a var-width attribute.
|
||||
* Note - This loop is a little tricky. For each non-null attribute,
|
||||
* we have to first account for alignment padding before the attr,
|
||||
* then advance over the attr based on its length. Nulls have no
|
||||
* storage and no alignment padding either. We can use/set
|
||||
* attcacheoff until we pass either a null or a var-width attribute.
|
||||
*/
|
||||
|
||||
for (i = 0; i < attnum; i++)
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/access/common/tupdesc.c,v 1.112 2005/10/15 02:49:08 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/access/common/tupdesc.c,v 1.113 2005/11/22 18:17:05 momjian Exp $
|
||||
*
|
||||
* NOTES
|
||||
* some of the executor utility code such as "ExecTypeFromTL" should be
|
||||
@@ -49,8 +49,8 @@ CreateTemplateTupleDesc(int natts, bool hasoid)
|
||||
* Allocate enough memory for the tuple descriptor, including the
|
||||
* attribute rows, and set up the attribute row pointers.
|
||||
*
|
||||
* Note: we assume that sizeof(struct tupleDesc) is a multiple of the struct
|
||||
* pointer alignment requirement, and hence we don't need to insert
|
||||
* Note: we assume that sizeof(struct tupleDesc) is a multiple of the
|
||||
* struct pointer alignment requirement, and hence we don't need to insert
|
||||
* alignment padding between the struct and the array of attribute row
|
||||
* pointers.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user