From 1871c892021055532344266d7429b63f76a892c2 Mon Sep 17 00:00:00 2001 From: Fujii Masao Date: Tue, 11 Nov 2014 21:44:46 +0900 Subject: Add generate_series(numeric, numeric). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Платон Малюгин Reviewed by Michael Paquier, Ali Akbar and Marti Raudsepp --- doc/src/sgml/func.sgml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index 7e5bcd98ddc..b58cfa578d5 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -14076,8 +14076,8 @@ AND generate_series(start, stop) - int or bigint - setof int or setof bigint (same as argument type) + int, bigint or numeric + setof int, setof bigint, or setof numeric (same as argument type) Generate a series of values, from start to stop with a step size of one @@ -14086,8 +14086,8 @@ AND generate_series(start, stop, step) - int or bigint - setof int or setof bigint (same as argument type) + int, bigint or numeric + setof int, setof bigint or setof numeric (same as argument type) Generate a series of values, from start to stop with a step size of step @@ -14137,6 +14137,14 @@ SELECT * FROM generate_series(4,3); ----------------- (0 rows) +SELECT generate_series(1.1, 4, 1.3); + generate_series +----------------- + 1.1 + 2.4 + 3.7 +(3 rows) + -- this example relies on the date-plus-integer operator SELECT current_date + s.a AS dates FROM generate_series(0,14,7) AS s(a); dates -- cgit v1.2.3