Skip to content

Instantly share code, notes, and snippets.

@snaga
Created October 28, 2011 04:50
Show Gist options
  • Save snaga/1321650 to your computer and use it in GitHub Desktop.
Save snaga/1321650 to your computer and use it in GitHub Desktop.
diff -rc pg_lesslog_1.4.2_pg90.orig/log.c pg_lesslog_1.4.2_pg90/log.c
*** pg_lesslog_1.4.2_pg90.orig/log.c Tue Jun 8 14:25:52 2010
--- pg_lesslog_1.4.2_pg90/log.c Fri Oct 28 13:43:12 2011
***************
*** 20,25 ****
--- 20,26 ----
#include "postgres.h"
#include "access/clog.h"
#include "access/gin.h"
+ #include "access/gin_private.h"
#include "access/gist_private.h"
#include "access/htup.h"
#include "access/multixact.h"
***************
*** 548,562 ****
--- 549,567 ----
case XLOG_GIST_PAGE_UPDATE:
*rec_name = "XLOG_GIST_PAGE_UPDATE";
break;
+ #if PG_VERSION_NUM < 90100
case XLOG_GIST_NEW_ROOT:
*rec_name = "XLOG_GIST_NEW_ROOT";
break;
+ #endif
case XLOG_GIST_PAGE_SPLIT:
*rec_name = "XLOG_GIST_PAGE_SPLIT";
break;
+ #if PG_VERSION_NUM < 90100
case XLOG_GIST_INSERT_COMPLETE:
*rec_name = "XLOG_GIST_INSERT_COMPLETE";
break;
+ #endif
case XLOG_GIST_CREATE_INDEX:
*rec_name = "XLOG_GIST_CREATE_INDEX";
break;
diff -rc pg_lesslog_1.4.2_pg90.orig/remove.c pg_lesslog_1.4.2_pg90/remove.c
*** pg_lesslog_1.4.2_pg90.orig/remove.c Tue Jun 8 14:22:07 2010
--- pg_lesslog_1.4.2_pg90/remove.c Fri Oct 28 13:41:17 2011
***************
*** 15,20 ****
--- 15,21 ----
#include "postgres.h"
#include "access/clog.h"
#include "access/gin.h"
+ #include "access/gin_private.h"
#include "access/gist_private.h"
#include "access/htup.h"
#include "access/multixact.h"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment