pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joe Conway <mail@joeconway.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Bruce Momjian <bruce@momjian.us>
Cc: Christopher Kings-Lynne <chris.kings-lynne@calorieking.com>
Cc: Patches (PostgreSQL) <pgsql-patches@postgresql.org>
Cc: Andrew Dunstan <andrew@dunslane.net>
Cc: Bernd Helmle <mailings@oopsware.de>
Cc: Peter Eisentraut <peter_e@gmx.net>
Cc: Susanne Ebrecht <susanne.ebrecht@credativ.de>
Subject: Re: [HACKERS] 8.2 features?
Date: Fri, 28 Jul 2006 13:42:17 -0700
Message-ID: <44CA76A9.8070101@joeconway.com> (raw)
In-Reply-To: <473.1154116455@sss.pgh.pa.us>
References: <200607281947.k6SJlOI02533@momjian.us>
	<473.1154116455@sss.pgh.pa.us>

Tom Lane wrote:
> Bruce Momjian <bruce@momjian.us> writes:
> 
>>Are you going to apply this?  Seems it is ready.
> 
> I thought Joe was off in a corner doing a whole new version.
> (I'm willing to help if he needs help...)
> 

Yeah, I was going to post the latest tonight.

I'm afraid though that after 2 or so days heading down the last path you 
suggested (namely making a new jointree leaf node) I was having trouble, 
and at the same time came to the conclusion that adding a new RTE was 
alot cleaner and made more sense to me. So I'm hoping you won't want to 
send me back to the drawing board again. I believe I have cleaned up the 
things you objected to:

1. Now I'm not doing both alternative -- the targetlists are only
    attached to the RTE from the point of parse analysis onward.
2. I've eliminated the tuplestore in favor of runtime evaluation
    of the targetlists which are in an array (allowing forward or
    backward scanning -- although I haven't tested the latter yet).

I've also solved the INSERT related issues that I had earlier:

1. Fixed the rules regression test -- now all regression tests pass
2. Fixed evaluation of DEFAULT values
3. Improved memory consumption and speed some more -- basically
    we are approximately equal to mysql as long as we don't swap,
    and we consume about twice the RAM as mysql instead of several
    times as much. I have more analysis of memory use I'd also like
    to share later.
4. I think the INSERT part of this is ready to go basically, but
    I need a bit more time to test corner cases.

I've made some progress on "SELECT ... FROM (VALUES ...) AS ..."

1. No more shift/reduce issues
2. The ValuesScan work and memory improvements mentioned above
    applies here too.
3. This part still needs the most work though.

I'll post a patch in a few hours -- there is some debug code in there 
currently that I should clean up before I send it to the list.

BTW, I'm reserving Saturday, Sunday, and Monday (taking Monday off from 
my day job) to work on outstanding issues. I can continue to work 
through the end of next Friday, 4 August. After that I'm heading to 
Germany on a business trip and my "spare" time will evaporate for a few 
weeks.

Joe





view thread (56+ messages)  latest in thread

Message-ID: <44CA76A9.8070101@joeconway.com>
Permalink:  ../44CA76A9.8070101@joeconway.com/
Also on:    postgresql.org/message-id/44CA76A9.8070101@joeconway.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: mail@joeconway.com, tgl@sss.pgh.pa.us, bruce@momjian.us, chris.kings-lynne@calorieking.com, pgsql-patches@postgresql.org, andrew@dunslane.net, mailings@oopsware.de, peter_e@gmx.net, susanne.ebrecht@credativ.de
  Subject: Re: [HACKERS] 8.2 features?
  In-Reply-To: <44CA76A9.8070101@joeconway.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox