From: | David Fetter <david(at)fetter(dot)org> |
---|---|
To: | Simon Riggs <simon(at)2ndQuadrant(dot)com> |
Cc: | Andrew Dunstan <andrew(at)dunslane(dot)net>, 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:36:10 |
Message-ID: | 20101222153610.GA21669@fetter.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Wed, Dec 22, 2010 at 03:00:16PM +0000, Simon Riggs wrote:
> On Wed, 2010-12-22 at 09:03 -0500, Andrew Dunstan wrote:
>
> > Answering a few of your questions
>
> Many thanks.
>
> > > 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.
The estimated size for a lot of things--streams of data, for
example--is infinity. I suppose that's a good default for some cases.
> > > 10. Can a foreign table be referenced by a FK?
> >
> > I don't see how it can be. There would be no unique index to use.
>
> That answers another question also.
There might be some cases where we can say an expression on a set of
columns is unique, but not in the general case. In the general case,
we can't even guarantee 1NF.
> Still many unanswered.
Will try these later today :)
Cheers,
David.
--
David Fetter <david(at)fetter(dot)org> http://fetter.org/
Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter
Skype: davidfetter XMPP: david(dot)fetter(at)gmail(dot)com
iCal: webcal://www.tripit.com/feed/ical/people/david74/tripit.ics
Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate
From | Date | Subject | |
---|---|---|---|
Next Message | Heikki Linnakangas | 2010-12-22 15:37:01 | Re: How much do the hint bits help? |
Previous Message | Simon Riggs | 2010-12-22 15:31:44 | Re: How much do the hint bits help? |