diff options
| author | Tom Lane | 2002-04-30 19:53:03 +0000 |
|---|---|---|
| committer | Tom Lane | 2002-04-30 19:53:03 +0000 |
| commit | 1e4f34f3099cad3a0860f4ec3762e2a5a5f86dfa (patch) | |
| tree | 5464432e723facd295693ee06194f82a0dabd636 /src/include/c.h | |
| parent | e4f06dc12efaf14878288a175efcf50ce2318813 (diff) | |
Document that NAMEDATALEN must be a multiple of sizeof(int).
Diffstat (limited to 'src/include/c.h')
| -rw-r--r-- | src/include/c.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/include/c.h b/src/include/c.h index 0a8a129c02..9053628d62 100644 --- a/src/include/c.h +++ b/src/include/c.h @@ -12,7 +12,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: c.h,v 1.119 2002/04/25 02:56:56 tgl Exp $ + * $Id: c.h,v 1.120 2002/04/30 19:53:03 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -420,7 +420,9 @@ typedef Oid oidvector[INDEX_MAX_KEYS]; /* * We want NameData to have length NAMEDATALEN and int alignment, * because that's how the data type 'name' is defined in pg_type. - * Use a union to make sure the compiler agrees. + * Use a union to make sure the compiler agrees. Note that NAMEDATALEN + * must be a multiple of sizeof(int), else sizeof(NameData) will probably + * not come out equal to NAMEDATALEN. */ typedef union nameData { |
