diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2003-07-27 16:32:34 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2003-07-27 16:32:34 +0000 |
commit | aeea73d4eceb9b33ff16a69c77bd923a0394a6d0 (patch) | |
tree | 6d8e15e8995d16314e748961d578af52e11cbf5e | |
parent | b29c557e0f6ba5754794463b5eae281fd0cb8c64 (diff) | |
download | postgresql-aeea73d4eceb9b33ff16a69c77bd923a0394a6d0.tar.gz postgresql-aeea73d4eceb9b33ff16a69c77bd923a0394a6d0.zip |
Remove unportable // comments.
-rw-r--r-- | contrib/spi/timetravel.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/contrib/spi/timetravel.c b/contrib/spi/timetravel.c index 08ab0b8bd5a..aa8d0a47b46 100644 --- a/contrib/spi/timetravel.c +++ b/contrib/spi/timetravel.c @@ -321,11 +321,13 @@ timetravel(PG_FUNCTION_ARGS) if(!(tupdesc->attrs[i - 1]->attisdropped)) /* skip dropped columns */ snprintf(sql + strlen(sql), sizeof(sql) - strlen(sql), "$%d%s", i, (i < natts) ? ", " : ")" ); -// snprintf(sql + strlen(sql), sizeof(sql) - strlen(sql), "$%d /* %d */ %s", -// i, ctypes[i-1], (i < natts) ? ", " : ")" ); +#if 0 + snprintf(sql + strlen(sql), sizeof(sql) - strlen(sql), "$%d /* %d */ %s", + i, ctypes[i-1], (i < natts) ? ", " : ")" ); +#endif } -// elog(NOTICE, "timetravel (%s) update: sql: %s", relname, sql); + elog(DEBUG4, "timetravel (%s) update: sql: %s", relname, sql); /* Prepare plan for query */ pplan = SPI_prepare(sql, natts, ctypes); @@ -395,10 +397,9 @@ timetravel(PG_FUNCTION_ARGS) * SPI_copytuple allocates tmptuple in upper executor context - * have to free allocation using SPI_pfree */ -// SPI_pfree(tmptuple); + /* SPI_pfree(tmptuple); */ } - else -/* DELETE */ + else /* DELETE case */ rettuple = trigtuple; SPI_finish(); /* don't forget say Bye to SPI mgr */ |