| From: | Andrew Dunstan <andrew(at)dunslane(dot)net> |
|---|---|
| To: | Simon Riggs <simon(at)2ndQuadrant(dot)com> |
| Cc: | Shigeru HANADA <hanada(at)metrosystems(dot)co(dot)jp>, pgsql-hackers(at)postgresql(dot)org |
| Subject: | Re: SQL/MED - core functionality |
| Date: | 2010-12-22 15:31:04 |
| Message-ID: | 4D1219B8.9080609@dunslane.net |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On 12/22/2010 10:00 AM, Simon Riggs wrote:
> 7. Why does ANALYZE skip foreign tables? Surely its really important we
>>> know things about a foreign table, otherwise we are going to optimize
>>> things very badly.
>> Quite apart from other reasons, such as possible ephemerality of the
>> data, the difficulty of taking a reasonable random sample from an
>> arbitrary foreign data source seems substantial, and we surely don't
>> want ANALYSE to have to run a full sequential scan of a foreign data source.
> I think we need something that estimates the size of a table, at least,
> otherwise queries will be completely un-optimised.
>
>
Perhaps we could allow FDWs to register a size estimation function. Does
this need to be done on the first go round? Time is running a bit short.
cheers
andrew
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Simon Riggs | 2010-12-22 15:31:44 | Re: How much do the hint bits help? |
| Previous Message | Bruce Momjian | 2010-12-22 15:13:16 | Re: pg_ctl and port number detection |