diff options
| author | Teodor Sigaev <teodor@sigaev.ru> | 2005-06-30 17:52:14 +0000 |
|---|---|---|
| committer | Teodor Sigaev <teodor@sigaev.ru> | 2005-06-30 17:52:14 +0000 |
| commit | 898a7bd13bb9d5ae36d2defcf3bbed3bd1d5ffd6 (patch) | |
| tree | d4973dbb3c3f10bfc7becb9199f3b0b7b233c9c3 /src/include | |
| parent | 7a30b1fb966fb14852ebe6bea35d801792f2cc61 (diff) | |
| download | postgresql-898a7bd13bb9d5ae36d2defcf3bbed3bd1d5ffd6.tar.gz | |
Bug fixes for GiST crash recovery.
- add forgotten check of lsn for insert completion
- remove level of pages: hard to check in recovery
- some cleanups
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/access/gist.h | 10 | ||||
| -rw-r--r-- | src/include/access/gist_private.h | 4 |
2 files changed, 4 insertions, 10 deletions
diff --git a/src/include/access/gist.h b/src/include/access/gist.h index ee060e83c2..44fe84ee38 100644 --- a/src/include/access/gist.h +++ b/src/include/access/gist.h @@ -9,7 +9,7 @@ * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/access/gist.h,v 1.48 2005/06/27 12:45:22 teodor Exp $ + * $PostgreSQL: pgsql/src/include/access/gist.h,v 1.49 2005/06/30 17:52:14 teodor Exp $ * *------------------------------------------------------------------------- */ @@ -45,13 +45,7 @@ typedef XLogRecPtr GistNSN; typedef struct GISTPageOpaqueData { - uint8 flags; - - /* number page to which current one is splitted in last split */ - uint8 nsplited; - - /* level of page, 0 - leaf */ - uint16 level; + uint32 flags; /* 29 bits are unused for now */ BlockNumber rightlink; /* the only meaning - change this value if diff --git a/src/include/access/gist_private.h b/src/include/access/gist_private.h index 6ea4dccb68..a14df2e377 100644 --- a/src/include/access/gist_private.h +++ b/src/include/access/gist_private.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/access/gist_private.h,v 1.6 2005/06/27 12:45:22 teodor Exp $ + * $PostgreSQL: pgsql/src/include/access/gist_private.h,v 1.7 2005/06/30 17:52:14 teodor Exp $ * *------------------------------------------------------------------------- */ @@ -234,7 +234,7 @@ extern IndexTuple * gistSplit(Relation r, Buffer buffer, IndexTuple *itup, int *len, SplitedPageLayout **dist, GISTSTATE *giststate); extern GISTInsertStack* gistFindPath( Relation r, BlockNumber child, - Buffer (*myReadBuffer)(bool, Relation, BlockNumber) ); + Buffer (*myReadBuffer)(Relation, BlockNumber) ); /* gistxlog.c */ extern void gist_redo(XLogRecPtr lsn, XLogRecord *record); extern void gist_desc(char *buf, uint8 xl_info, char *rec); |
