Changeset 135

Show
Ignore:
Timestamp:
04/23/10 15:22:04 (4 years ago)
Author:
jesus
Message:

support for 9.0.x

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/contrib/control/control.c

    r134 r135  
    5151#if PG_CONTROL_VERSION >= 840 && PG_CONTROL_VERSION < 900 
    5252#define CONTROL_NUM_ROWS 25 
     53#endif 
     54#if PG_CONTROL_VERSION >= 900 && PG_CONTROL_VERSION < 1000 
     55#define CONTROL_NUM_ROWS 33 
     56#endif 
     57#ifndef CONTROL_NUM_ROWS 
     58#error No support for your postgres version 
    5359#endif 
    5460 
     
    195201      case 23: uint32_item(checkPointCopy.nextMultiOffset); break; 
    196202      case 24: time_item(checkPointCopy.time); break; 
     203#if PG_CONTROL_VERSION >= 900 && PG_CONTROL_VERSION < 1000 
     204      case 25: XLogRecPtr_item(backupStartPoint); break; 
     205      case 26: uint32_item(checkPointCopy.oldestXid); break; 
     206      case 27: uint32_item(checkPointCopy.oldestXidDB); break; 
     207      case 28: uint32_item(checkPointCopy.MaxConnections); break; 
     208      case 29: uint32_item(checkPointCopy.max_prepared_xacts); break; 
     209      case 30: uint32_item(checkPointCopy.max_locks_per_xact); break; 
     210      case 31: bool_item(checkPointCopy.XLogStandbyInfoMode); break; 
     211      case 32: uint32_item(checkPointCopy.oldestActiveXid); break; 
     212#endif 
    197213      default: 
    198214        elog(ERROR, "internal control error");