Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Patches > Re: [HACKERS] W...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 3 Topic 3908 of 4098
Post > Topic >>

Re: [HACKERS] WITH RECUSIVE patches 0717

by ishii@[EMAIL PROTECTED] (Tatsuo Ishii) Jul 21, 2008 at 08:19 AM

> > Thus I think we should avoid this kind of ORDER BY. Probably we should
> > avoid LIMIT/OFFSET and FOR UPDATE as well.
> 
> What of index-optimized SELECT max(...) ?

Aggregate functions in a recursive term is prohibited by the
standard. For example, 

WITH RECURSIVE x(n) AS (SELECT 1 UNION ALL SELECT max(n) FROM x)
  SELECT * FROM x;

produces an error.
--
Tatsuo I****i
SRA OSS, Inc. Japan

-- 
Sent via pgsql-patches mailing list (pgsql-patches@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-patches
 




 3 Posts in Topic:
Re: [HACKERS] WITH RECUSIVE patches 0717
er@[EMAIL PROTECTED] (&q  2008-07-18 19:30:24 
Re: [HACKERS] WITH RECUSIVE patches 0717
tgl@[EMAIL PROTECTED] (T  2008-07-20 12:22:30 
Re: [HACKERS] WITH RECUSIVE patches 0717
ishii@[EMAIL PROTECTED]   2008-07-21 08:19:35 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Oct 15 20:41:44 CDT 2008.