Re: WIP: Collecting statistics on CSV file data

Robert Haas <robertmhaas@gmail.com>

From: Robert Haas <robertmhaas@gmail.com>
To: Shigeru Hanada <shigeru.hanada@gmail.com>
Cc: Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>, pgsql-hackers@postgresql.org
Date: 2011-11-18T15:54:40Z
Lists: pgsql-hackers
2011/11/18 Shigeru Hanada <shigeru.hanada@gmail.com>:
> - I couldn't see the reason why file_fdw sets ctid of sample tuples,
> though I guess it's for Vitter's random sampling algorithm.  If every
> FDW must set valid ctid to sample tuples, it should be mentioned in
> document of AnalyzeForeignTable.  Exporting some functions from
> analyze.c relates this issue?

If every FDW must set valid ctid to sample tuples, it should be fixed
so that they don't have to, I would think.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company