* WinGetPartitionRowCount * Return total number of rows contained in the current partition. * * Note: this is a relatively expensive operation because it forces the * whole partition to be "spooled" into the tuplestore at once. Once * executed, however, additional calls within the same partition are cheap. */
| 3457 | * executed, however, additional calls within the same partition are cheap. |
| 3458 | */ |
| 3459 | int64 |
| 3460 | WinGetPartitionRowCount(WindowObject winobj) |
| 3461 | { |
| 3462 | Assert(WindowObjectIsValid(winobj)); |
| 3463 | spool_tuples(winobj->winstate, -1); |
| 3464 | return winobj->winstate->spooled_rows; |
| 3465 | } |
| 3466 | |
| 3467 | /* |
| 3468 | * WinSetMarkPosition |
no test coverage detected