Re: Multiple SRF right after SELECT

From: Albert Cervera i Areny <albert(at)nan-tic(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Cc: "Nikolay Samokhvalov" <samokhvalov(at)gmail(dot)com>
Subject: Re: Multiple SRF right after SELECT
Date: 2008-03-19 12:20:33
Message-ID: 200803191320.33679.albert@nan-tic.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Kenneth Marshall 2008-03-19 12:25:15 Re: [PATCHES] Fix for large file support (nonsegment mode support)
Previous Message Nikolay Samokhvalov 2008-03-19 12:03:48 Multiple SRF right after SELECT