1515/* AbsoluteTime currabstime(void); */
1616Datum timetravel (PG_FUNCTION_ARGS );
1717Datum set_timetravel (PG_FUNCTION_ARGS );
18+ Datum get_timetravel (PG_FUNCTION_ARGS );
1819
1920typedef struct
2021{
@@ -31,7 +32,7 @@ typedef struct _TTOffList
3132char name [1 ];
3233}TTOffList ;
3334
34- static TTOffList TTOff = {NULL ,0 };
35+ static TTOffList TTOff = {NULL ,{ 0 } };
3536
3637static int findTTStatus (char * name );
3738static EPlan * find_plan (char * ident ,EPlan * * eplan ,int * nplans );
@@ -306,7 +307,6 @@ timetravel(PG_FUNCTION_ARGS)
306307void * pplan ;
307308Oid * ctypes ;
308309char sql [8192 ];
309- int j ;
310310
311311/* allocate ctypes for preparation */
312312ctypes = (Oid * )palloc (natts * sizeof (Oid ));
@@ -355,7 +355,6 @@ timetravel(PG_FUNCTION_ARGS)
355355/* Tuple to return to upper Executor ... */
356356if (newtuple )
357357{/* UPDATE */
358- HeapTuple tmptuple ;
359358int chnattrs = 0 ;
360359int chattrs [MaxAttrNum ];
361360Datum newvals [MaxAttrNum ];
@@ -477,7 +476,7 @@ PG_FUNCTION_INFO_V1(get_timetravel);
477476Datum
478477get_timetravel (PG_FUNCTION_ARGS )
479478{
480- Name relname = PG_GETARG_NAME (0 );
479+ Name relname = PG_GETARG_NAME (0 );
481480TTOffList * pp ;
482481
483482for (pp = TTOff .next ;pp ;pp = pp -> next )