multimpe records output from a 'no-table' source - Mailing list pgsql-general

From Rafal Pietrak
Subject multimpe records output from a 'no-table' source
Date
Msg-id 1156485472.10692.12.camel@zorro.isa-geek.com
Whole thread Raw
Responses Re: multimpe records output from a 'no-table' source  (Martijn van Oosterhout <kleptog@svana.org>)
List pgsql-general
Hi all,

There is this functions like 'current_date', 'current_database', etc.
yielding a row of data without any table to source rows from. Like:
    dev=# SELECT current_date;
        date
    ------------
     2006-08-25
    (1 row)

Is there a way to get multiple rows? Like:
    dev=# SELECT current_date where date between now and yesterday;
        date
    ------------
     2006-08-24
     2006-08-25
    (2 rows)
(of cource this is 'cooked' example, as I haven't figured out how to
achieve this).
Or:
    dev=# SELECT * where a::numeric between 1 and 3;
        a
    ------------
     1
     3
     2
    (3 rows)

--
-R

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: FW: Serverlog 100GB
Next
From: Martijn van Oosterhout
Date:
Subject: Re: multimpe records output from a 'no-table' source