Skip to content

Commit aeea73d

Browse files
committed
Remove unportable // comments.
1 parent b29c557 commit aeea73d

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

contrib/spi/timetravel.c

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -321,11 +321,13 @@ timetravel(PG_FUNCTION_ARGS)
321321
if(!(tupdesc->attrs[i - 1]->attisdropped)) /* skip dropped columns */
322322
snprintf(sql + strlen(sql), sizeof(sql) - strlen(sql), "$%d%s",
323323
i, (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 */
331333
pplan = 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 */
402403
rettuple = trigtuple;
403404

404405
SPI_finish(); /* don't forget say Bye to SPI mgr */

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy