Re: Multiple SRF right after SELECT - Mailing list pgsql-hackers

From Albert Cervera i Areny
Subject Re: Multiple SRF right after SELECT
Date
Msg-id 200803191320.33679.albert@nan-tic.com
Whole thread Raw
In response to Multiple SRF right after SELECT  ("Nikolay Samokhvalov" <samokhvalov@gmail.com>)
Responses Re: Multiple SRF right after SELECT  (David BOURIAUD <david.bouriaud@ac-rouen.fr>)
List pgsql-hackers
A Dimecres 19 Març 2008, Nikolay Samokhvalov va escriure:
>  2. Why the query above provides 4 rows, not 2*4=8? Actually, that's
> interesting -- I can use this query to find l.c.m. But it's defenetely
> not that I'd expect before my try...

2*4 = 8: 

select * from generate_series(1, 2) a, generate_series(1, 4) b;

Can't tell you about the expected behaviour in the query you provided though.

-- 
Albert Cervera i Areny
http://www.NaN-tic.com


pgsql-hackers by date:

Previous
From: Kenneth Marshall
Date:
Subject: Re: [PATCHES] Fix for large file support (nonsegment mode support)
Next
From: Zdeněk Kotala
Date:
Subject: Re: [PATCHES] Fix for large file support (nonsegment mode support)