@@ -321,11 +321,13 @@ timetravel(PG_FUNCTION_ARGS)
321321if (!(tupdesc -> attrs [i - 1 ]-> attisdropped ))/* skip dropped columns */
322322snprintf (sql + strlen (sql ),sizeof (sql )- strlen (sql ),"$%d%s" ,
323323i , (i < natts ) ?", " :")" );
324- // snprintf(sql + strlen(sql), sizeof(sql) - strlen(sql), "$%d /* %d */ %s",
325- //i, ctypes[i-1], (i < natts) ? ", " : ")" );
324+ #if 0
325+ snprintf (sql + strlen (sql ),sizeof (sql )- strlen (sql ),"$%d /* %d */ %s" ,
326+ i ,ctypes [i - 1 ], (i < natts ) ?", " :")" );
327+ #endif
326328}
327329
328- // elog(NOTICE , "timetravel (%s) update: sql: %s", relname, sql);
330+ elog (DEBUG4 ,"timetravel (%s) update: sql: %s" ,relname ,sql );
329331
330332/* Prepare plan for query */
331333pplan = SPI_prepare (sql ,natts ,ctypes );
@@ -395,10 +397,9 @@ timetravel(PG_FUNCTION_ARGS)
395397 * SPI_copytuple allocates tmptuple in upper executor context -
396398 * have to free allocation using SPI_pfree
397399 */
398- // SPI_pfree(tmptuple);
400+ /* SPI_pfree(tmptuple); */
399401}
400- else
401- /* DELETE */
402+ else /* DELETE case */
402403rettuple = trigtuple ;
403404
404405SPI_finish ();/* don't forget say Bye to SPI mgr */