Sort is actually PlanState?

Hitoshi Harada <umi.tanuki@gmail.com>

From: Hitoshi Harada <umi.tanuki@gmail.com>
To: PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2010-11-02T00:55:47Z
Lists: pgsql-hackers

Attachments

I wonder why SortState is a ScanState. As far as I know ScanState
means the node may need projection and/or qualification, or it scans
some relation, but Sort actually doesn't do such things. I also tried
to modify SortState as PlanState as in the attached patch and
regression test passed. Do I misunderstand ScanState?

Regards,

-- 
Hitoshi Harada