@@ -369,9 +369,9 @@ typedef struct RumConfig
369
369
370
370
/* XLog stuff */
371
371
372
- #define XLOG_GIN_CREATE_INDEX 0x00
372
+ #define XLOG_RUM_CREATE_INDEX 0x00
373
373
374
- #define XLOG_GIN_CREATE_PTREE 0x10
374
+ #define XLOG_RUM_CREATE_PTREE 0x10
375
375
376
376
typedef struct rumxlogCreatePostingTree
377
377
{
@@ -386,7 +386,7 @@ typedef struct rumxlogCreatePostingTree
386
386
/* follows list of heap's ItemPointer */
387
387
}rumxlogCreatePostingTree ;
388
388
389
- #define XLOG_GIN_INSERT 0x20
389
+ #define XLOG_RUM_INSERT 0x20
390
390
391
391
typedef struct rumxlogInsert
392
392
{
@@ -410,7 +410,7 @@ typedef struct rumxlogInsert
410
410
*/
411
411
}rumxlogInsert ;
412
412
413
- #define XLOG_GIN_SPLIT 0x30
413
+ #define XLOG_RUM_SPLIT 0x30
414
414
415
415
typedef struct rumxlogSplit
416
416
{
@@ -437,7 +437,7 @@ typedef struct rumxlogSplit
437
437
/* follows: list of tuple or ItemPointerData or PostingItem */
438
438
}rumxlogSplit ;
439
439
440
- #define XLOG_GIN_VACUUM_PAGE 0x40
440
+ #define XLOG_RUM_VACUUM_PAGE 0x40
441
441
442
442
typedef struct rumxlogVacuumPage
443
443
{
@@ -452,7 +452,7 @@ typedef struct rumxlogVacuumPage
452
452
/* follows content of page */
453
453
}rumxlogVacuumPage ;
454
454
455
- #define XLOG_GIN_DELETE_PAGE 0x50
455
+ #define XLOG_RUM_DELETE_PAGE 0x50
456
456
457
457
typedef struct rumxlogDeletePage
458
458
{
@@ -464,7 +464,7 @@ typedef struct rumxlogDeletePage
464
464
BlockNumber rightLink ;
465
465
}rumxlogDeletePage ;
466
466
467
- #define XLOG_GIN_UPDATE_META_PAGE 0x60
467
+ #define XLOG_RUM_UPDATE_META_PAGE 0x60
468
468
469
469
typedef struct rumxlogUpdateMeta
470
470
{
@@ -478,7 +478,7 @@ typedef struct rumxlogUpdateMeta
478
478
/* array of inserted tuples follows */
479
479
}rumxlogUpdateMeta ;
480
480
481
- #define XLOG_GIN_INSERT_LISTPAGE 0x70
481
+ #define XLOG_RUM_INSERT_LISTPAGE 0x70
482
482
483
483
typedef struct rumxlogInsertListPage
484
484
{
@@ -489,7 +489,7 @@ typedef struct rumxlogInsertListPage
489
489
/* array of inserted tuples follows */
490
490
}rumxlogInsertListPage ;
491
491
492
- #define XLOG_GIN_DELETE_LISTPAGE 0x80
492
+ #define XLOG_RUM_DELETE_LISTPAGE 0x80
493
493
494
494
#define RUM_NDELETE_AT_ONCE 16
495
495
typedef struct rumxlogDeleteListPages
@@ -504,7 +504,7 @@ typedef struct rumxlogDeleteListPages
504
504
/* rumutil.c */
505
505
extern bytea * rumoptions (Datum reloptions ,bool validate );
506
506
extern Datum rumhandler (PG_FUNCTION_ARGS );
507
- extern void initGinState (RumState * state ,Relation index );
507
+ extern void initRumState (RumState * state ,Relation index );
508
508
extern Buffer RumNewBuffer (Relation index );
509
509
extern void RumInitBuffer (Buffer b ,uint32 f );
510
510
extern void RumInitPage (Page page ,uint32 f ,Size pageSize );
@@ -601,7 +601,7 @@ extern RumBtreeStack *rumPrepareFindLeafPage(RumBtree btree, BlockNumber blkno);
601
601
extern RumBtreeStack * rumFindLeafPage (RumBtree btree ,RumBtreeStack * stack );
602
602
extern RumBtreeStack * rumReFindLeafPage (RumBtree btree ,RumBtreeStack * stack );
603
603
extern Buffer rumStepRight (Buffer buffer ,Relation index ,int lockmode );
604
- extern void freeGinBtreeStack (RumBtreeStack * stack );
604
+ extern void freeRumBtreeStack (RumBtreeStack * stack );
605
605
extern void rumInsertValue (RumBtree btree ,RumBtreeStack * stack ,
606
606
GinStatsData * buildStats );
607
607
extern void rumFindParents (RumBtree btree ,RumBtreeStack * stack ,BlockNumber rootBlkno );