diff options
author | Vadim B. Mikheev <vadim4o@yahoo.com> | 2000-10-16 14:52:28 +0000 |
---|---|---|
committer | Vadim B. Mikheev <vadim4o@yahoo.com> | 2000-10-16 14:52:28 +0000 |
commit | 2c7de17b075baf7be270acf4d541bd4b17047e4c (patch) | |
tree | c9b7aff45678be41380551d87b6168f317064934 /src/include/storage/buf_internals.h | |
parent | 07a55ebf646eb244f52afc11fcca189b0d006970 (diff) | |
download | postgresql-2c7de17b075baf7be270acf4d541bd4b17047e4c.tar.gz postgresql-2c7de17b075baf7be270acf4d541bd4b17047e4c.zip |
New file naming. Database OID is used as "tablespace" id and
relation OID is used as file node on creation but may be changed later
if required. Regression Tests Approved (c) -:)))
Diffstat (limited to 'src/include/storage/buf_internals.h')
-rw-r--r-- | src/include/storage/buf_internals.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/include/storage/buf_internals.h b/src/include/storage/buf_internals.h index 2347db17bd0..4f4a516afdf 100644 --- a/src/include/storage/buf_internals.h +++ b/src/include/storage/buf_internals.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: buf_internals.h,v 1.37 2000/04/12 17:16:51 momjian Exp $ + * $Id: buf_internals.h,v 1.38 2000/10/16 14:52:28 vadim Exp $ * *------------------------------------------------------------------------- */ @@ -61,6 +61,7 @@ typedef struct buftag (a)->relId = (xx_reln)->rd_lockInfo.lockRelId \ ) +#ifdef OLD_FILE_NAMING /* If we have to write a buffer "blind" (without a relcache entry), * the BufferTag is not enough information. BufferBlindId carries the * additional information needed. @@ -71,6 +72,17 @@ typedef struct bufblindid char relname[NAMEDATALEN]; /* name of reln */ } BufferBlindId; +#else + +typedef struct bufblindid +{ + char dbname[NAMEDATALEN]; /* name of db in which buf belongs */ + char relname[NAMEDATALEN]; /* name of reln */ + RelFileNode rnode; +} BufferBlindId; + +#endif + #define BAD_BUFFER_ID(bid) ((bid) < 1 || (bid) > NBuffers) #define INVALID_DESCRIPTOR (-3) |