Ripping out dead code for mark/restore in some plan types

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-hackers(at)postgreSQL(dot)org
Subject: Ripping out dead code for mark/restore in some plan types
Date: 2014-11-20 19:25:41
Message-ID: 18616.1416511541@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

execAmi.c points out that

* (However, since the only present use of mark/restore is in mergejoin,
* there is no need to support mark/restore in any plan type that is not
* capable of generating ordered output. So the seqscan, tidscan,
* and valuesscan support is actually useless code at present.)

I don't see any prospect that we'd ever adopt mark/restore for any other
purpose than mergejoin, so it seems to me that the code in question is
permanently dead. There's not that much of it, but I'm thinking that
ripping it out and clarifying the commentary in execAmi.c would still
be a net benefit for readability. Any objections?

regards, tom lane

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2014-11-20 19:28:35 Re: Functions used in index definitions shouldn't be changed
Previous Message Robert Haas 2014-11-20 19:11:31 Re: Functions used in index definitions shouldn't be changed