]> granicus.if.org Git - postgresql/commitdiff
Remove unportable // comments.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 27 Jul 2003 16:32:34 +0000 (16:32 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 27 Jul 2003 16:32:34 +0000 (16:32 +0000)
contrib/spi/timetravel.c

index 08ab0b8bd5a7337f74380cf14ec97b8e515f81a5..aa8d0a47b4637f95c283ddc08f66e85b2d0d7ced 100644 (file)
@@ -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 */