Re: [HACKERS] Idea for speeding up uncorrelated subqueries

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: Vadim Mikheev <vadim(at)krs(dot)ru>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] Idea for speeding up uncorrelated subqueries
Date: 1999-08-06 03:31:01
Message-ID: 199908060331.XAA22277@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> > > where it won't, such as when the subplan is just an unqualified select,
> > > but most of the time it should be a win, I think...)
>
> In such cases, if there are no aggregates in subquery then EXISTS
> could be used else materialization will still help.
>
> > No what Vadim is done MVCC, I would like to bug him to improve subquery
> > performance. We are tweeking the optimizer, but we have this huge
> > subquery performance problem here.
>
> No, Bruce. I'm in WAL now. I think that we need in recovery
> (remember that you'll lose indices being updated when some
> crash took place), fast backup (it's easy to copy part of log
> than dump 1Gb table), fast commits (<= 1 fsync per commit
> using group commit, instead of >= 2 fsyncs now), savepoints
> AND buffered logging, which you, Bruce, want so much,
> and so long -:).

Oh, no, I have been outmaneuvered by Vadim.

Help.

Isn't it something that takes only a few hours to implement. We can't
keep telling people to us EXISTS, especially because most SQL people
think correlated queries are slower that non-correlated ones. Can we
just on-the-fly rewrite the query to use exists?

--
Bruce Momjian | http://www.op.net/~candle
maillist(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Vadim Mikheev 1999-08-06 04:01:57 Re: [HACKERS] Idea for speeding up uncorrelated subqueries
Previous Message Vadim Mikheev 1999-08-06 03:04:38 Re: [HACKERS] Idea for speeding up uncorrelated subqueries