pgsql: Report syncscan position at end of scan.

2023-08-31 Thread Heikki Linnakangas
Report syncscan position at end of scan. The comment in heapgettup_advance_block() says that it reports the scan position before checking for end of scan, but that didn't match the code. The code was refactored in commit 7ae0ab0ad9, which inadvertently changed the order of the check and reporting.

pgsql: Report syncscan position at end of scan.

2023-08-31 Thread Heikki Linnakangas
Report syncscan position at end of scan. The comment in heapgettup_advance_block() says that it reports the scan position before checking for end of scan, but that didn't match the code. The code was refactored in commit 7ae0ab0ad9, which inadvertently changed the order of the check and reporting.