mirror of
https://github.com/postgres/postgres.git
synced 2025-11-10 17:42:29 +03:00
Fix latent bug in ExecSeqRestrPos: it leaves the plan node's result slot
in an inconsistent state. (This is only latent because in reality ExecSeqRestrPos is dead code at the moment ... but someday maybe it won't be.) Add some comments about what the API for plan node mark/restore actually is, because it's not immediately obvious.
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/access/index/indexam.c,v 1.80 2005/04/14 20:03:23 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/access/index/indexam.c,v 1.81 2005/05/15 21:19:54 tgl Exp $
|
||||
*
|
||||
* INTERFACE ROUTINES
|
||||
* index_open - open an index relation by relation OID
|
||||
@@ -411,6 +411,10 @@ index_markpos(IndexScanDesc scan)
|
||||
|
||||
/* ----------------
|
||||
* index_restrpos - restore a scan position
|
||||
*
|
||||
* NOTE: this only restores the internal scan state of the index AM.
|
||||
* The current result tuple (scan->xs_ctup) doesn't change. See comments
|
||||
* for ExecRestrPos().
|
||||
* ----------------
|
||||
*/
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user