diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2002-08-25 17:20:01 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2002-08-25 17:20:01 +0000 |
commit | 58de480999da65ec0fbf256f17800cba89e26dd5 (patch) | |
tree | ff80d7c93f5836bbdfdc0b3c6a5165423856cb83 /src/include/postgres.h | |
parent | d46172e4fa930e18768b8b913166108a4909e858 (diff) | |
download | postgresql-58de480999da65ec0fbf256f17800cba89e26dd5.tar.gz postgresql-58de480999da65ec0fbf256f17800cba89e26dd5.zip |
Clean up comments to be careful about the distinction between variable-
width types and varlena types, since with the introduction of CSTRING as
a more-or-less-real type, these concepts aren't identical. I've tried to
use varlena consistently to denote datatypes with typlen = -1, ie, they
have a length word and are potentially TOASTable; while the term variable
width covers both varlena and cstring (and, perhaps, someday other types
with other rules for computing the actual width). No code changes in this
commit except for renaming a couple macros.
Diffstat (limited to 'src/include/postgres.h')
-rw-r--r-- | src/include/postgres.h | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/src/include/postgres.h b/src/include/postgres.h index c509daf0611..04451d794ad 100644 --- a/src/include/postgres.h +++ b/src/include/postgres.h @@ -10,7 +10,7 @@ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1995, Regents of the University of California * - * $Id: postgres.h,v 1.59 2002/08/10 20:29:18 momjian Exp $ + * $Id: postgres.h,v 1.60 2002/08/25 17:20:01 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -30,14 +30,15 @@ * * NOTES * - * In general, this file should contain declarations that are widely needed in the - * backend environment, but are of no interest outside the backend. + * In general, this file should contain declarations that are widely needed + * in the backend environment, but are of no interest outside the backend. * - * Simple type definitions live in c.h, where they are shared with postgres_fe.h. - * We do that since those type definitions are needed by frontend modules that want - * to deal with binary data transmission to or from the backend. Type definitions - * in this file should be for representations that never escape the backend, such - * as Datum or TOASTed varlena objects. + * Simple type definitions live in c.h, where they are shared with + * postgres_fe.h. We do that since those type definitions are needed by + * frontend modules that want to deal with binary data transmission to or + * from the backend. Type definitions in this file should be for + * representations that never escape the backend, such as Datum or + * TOASTed varlena objects. * *---------------------------------------------------------------- */ @@ -54,7 +55,8 @@ */ /* ---------------- - * struct varattrib is the header of a varlena object that may have been TOASTed. + * struct varattrib is the header of a varlena object that may have been + * TOASTed. * ---------------- */ #define TUPLE_TOASTER_ACTIVE |