| | |
| | | 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(); |