Исходный код СУБД RuDB — свободной СУБД с открытым исходным кодом на базе PostgreSQL
rudb
2026-06-19 0cfc87bd32822e5ba22d8c2b1a26fa60f63ad7fa
contrib/postgis/raster/rt_pg/rtpg_create.c
@@ -1213,13 +1213,15 @@
      funcctx->user_fctx = arg1;
      /* total number of tuples to be returned */
      funcctx->max_calls = ((uint64_t) arg1->tile.nx * (uint64_t) arg1->tile.ny);
      funcctx->max_calls = ((uint64_t) arg1->tile.nx * (uint64_t) arg1->tile.ny); /*#<<<DIA_SVACE_MAJOR>>>*/
      MemoryContextSwitchTo(oldcontext);
   }
/*#<<<DIA_SVACE_MAJOR*/
   if (funcctx->max_calls > INT32_MAX)
      elog(ERROR, "RASTER_tile: Overflow while working with raster points.");
/*#DIA_SVACE_MAJOR>>>*/
   /* stuff done on every call of the function */
   funcctx = SRF_PERCALL_SETUP();