Re: patch: SQL/MED(FDW) DDL - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: patch: SQL/MED(FDW) DDL
Date
Msg-id 1285768919-sup-3750@alvh.no-ip.org
Whole thread Raw
In response to Re: patch: SQL/MED(FDW) DDL  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: patch: SQL/MED(FDW) DDL
Re: patch: SQL/MED(FDW) DDL
List pgsql-hackers
Excerpts from Robert Haas's message of mar sep 28 10:26:54 -0400 2010:

> Then:
> 
> - Begin a sequential scan with the following set of quals.
> - Begin an index scan using the index called X with the following set of quals.
> - Fetch next tuple.
> - End scan.

I'm not sure that it's a good idea to embed into the FDW API the set of
operations known to the executor.  For example your proposal fails to
consider bitmap scans.  Seems simpler and more general to hand the quals
over saying "I need to scan this relation with these quals", and have it
return an opaque iterable object; the remote executor would be in charge
of determining their usage for indexscans; or even for filtering tuples
with quals that cannot be part of the index condition.

There doesn't to be much point in knowing the names of remote indexes
either (if it came to referencing them, better use OIDs)

-- 
Álvaro Herrera <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: recovery.conf location
Next
From: "Kevin Grittner"
Date:
Subject: Re: git diff --patience