Re: Merge Append Patch merged up to 85devel - Mailing list pgsql-hackers

From Teodor Sigaev
Subject Re: Merge Append Patch merged up to 85devel
Date
Msg-id 4A5343F5.1020804@sigaev.ru
Whole thread Raw
In response to Re: Merge Append Patch merged up to 85devel  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
> Can you provide some more details about the objective of this patch?  Or 
> a link to previous discussion?

Suppose, Greg's patch could be modified to support order OR index scans:
SELECT ... WHERE (c > 10 AND c < 20) OR (c > 100 AND C < 110) ORDER BY c DESC

with plan:
Result   -> Append       -> Backward index scan (c > 100 AND C < 110)       -> Backward index scan (c > 10 AND C < 20)

I suggested a similar patch two years ago: 
http://archives.postgresql.org/message-id/45742C51.9020602@sigaev.ru (4-th 
point) and subsequent discussion 
http://archives.postgresql.org/pgsql-patches/2006-12/msg00029.php

-- 
Teodor Sigaev                                   E-mail: teodor@sigaev.ru
  WWW: http://www.sigaev.ru/
 


pgsql-hackers by date:

Previous
From: Teodor Sigaev
Date:
Subject: Re: WIP: generalized index constraints
Next
From: Atsushi Ogawa
Date:
Subject: Re: Reduce the memcpy call from SearchCatCache