| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>, pgsql-hackers(at)postgreSQL(dot)org |
| Subject: | Re: [HACKERS] is it possible to use LIMIT and INTERSECT ? |
| Date: | 1999-10-19 04:42:08 |
| Message-ID: | 8003.940308128@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
I wrote:
> Hmm. It seemed to work as expected in current --- maybe there is
> another bug still lurking in 6.5.*. I'll look when I get a chance.
Yup, this change that was already in current is also needed:
*** src/backend/parser/gram.y.orig Mon Oct 18 23:59:35 1999
--- src/backend/parser/gram.y Mon Oct 18 23:55:18 1999
***************
*** 2768,2773 ****
--- 2768,2775 ----
/* finally attach the sort clause */
first_select->sortClause = $2;
first_select->forUpdate = $3;
+ first_select->limitOffset = nth(0, $4);
+ first_select->limitCount = nth(1, $4);
$$ = (Node *)first_select;
}
if (((SelectStmt *)$$)->forUpdate != NULL && QueryIsRule)
I have updated both current and REL6_5 branches.
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 1999-10-19 05:05:00 | Re: [HACKERS] funny psql output |
| Previous Message | Vadim Mikheev | 1999-10-19 04:40:40 | Re: [HACKERS] mdnblocks is an amazing time sink in huge relations |