diff options
| author | Neil Conway | 2004-01-06 18:07:32 +0000 |
|---|---|---|
| committer | Neil Conway | 2004-01-06 18:07:32 +0000 |
| commit | dfc7e7b71d86771c3242ac4fab6a04496ed0cf98 (patch) | |
| tree | 0c7ac2974fc05c725bac73ab0565402fa4ffc4ea /src/include | |
| parent | 030f8e731326f39a5438af9ce3adc48479332f8b (diff) | |
Code cleanup, mostly in the smgr:
- Update comment in IsReservedName() to the present day
- Improve some variable & function names in commands/vacuum.c. I
was planning to rewrite this to avoid lappend(), but since I
still intend to do the list rewrite, there's no need for that.
- Update some smgr comments which seemed to imply that we still
forced all dirty pages to disk at commit-time.
- Replace some #ifdef DIAGNOSTIC code with assertions.
- Make the distinction between OS-level file descriptors and
virtual file descriptors a little clearer in a few comments
- Other minor comment improvements in the smgr code
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/utils/rel.h | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/src/include/utils/rel.h b/src/include/utils/rel.h index 8f2ae99caf..dfdb8491e3 100644 --- a/src/include/utils/rel.h +++ b/src/include/utils/rel.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/utils/rel.h,v 1.71 2003/11/29 22:41:16 pgsql Exp $ + * $PostgreSQL: pgsql/src/include/utils/rel.h,v 1.72 2004/01/06 18:07:32 neilc Exp $ * *------------------------------------------------------------------------- */ @@ -104,7 +104,9 @@ typedef struct PgStat_Info typedef struct RelationData { - File rd_fd; /* open file descriptor, or -1 if none */ + File rd_fd; /* open file descriptor, or -1 if + * none; this is NOT an operating + * system file descriptor */ RelFileNode rd_node; /* file node (physical identifier) */ BlockNumber rd_nblocks; /* number of blocks in rel */ BlockNumber rd_targblock; /* current insertion target block, or @@ -220,22 +222,21 @@ typedef Relation *RelationPtr; /* * RelationGetRelid - * - * returns the OID of the relation + * Returns the OID of the relation */ #define RelationGetRelid(relation) ((relation)->rd_id) /* * RelationGetFile - * - * Returns the open file descriptor for the rel + * Returns the open file descriptor for the rel, or -1 if + * none. This is NOT an operating system file descriptor; see md.c + * for more information */ #define RelationGetFile(relation) ((relation)->rd_fd) /* * RelationGetNumberOfAttributes - * - * Returns the number of attributes. + * Returns the number of attributes in a relation. */ #define RelationGetNumberOfAttributes(relation) ((relation)->rd_rel->relnatts) @@ -247,8 +248,7 @@ typedef Relation *RelationPtr; /* * RelationGetRelationName - * - * Returns the rel's name. + * Returns the rel's name. * * Note that the name is only unique within the containing namespace. */ @@ -257,8 +257,7 @@ typedef Relation *RelationPtr; /* * RelationGetNamespace - * - * Returns the rel's namespace OID. + * Returns the rel's namespace OID. */ #define RelationGetNamespace(relation) \ ((relation)->rd_rel->relnamespace) |
