INSERT..SELECT with GENERATE_SERIES returns error.

From: "Anupama Aherrao" <anupama(dot)aherrao(at)enterprisedb(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: INSERT..SELECT with GENERATE_SERIES returns error.
Date: 2008-12-18 11:44:59
Message-ID: 4bf2bd870812180344v74d28412n74b39304a519db7c@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi All,

Following INSERT..SELECT with GENERATE_SERIES for bulk insertion returns
error on 8.4 cvs head. It looks like an issue.

Tested on : *8.4 CVS Head*

CREATE TABLE t1 ( x int, y char(4));
INSERT INTO t1 VALUES ( 1, 'edb');
INSERT INTO t1 SELECT 10 + GENERATE_SERIES(50,60), y FROM t1 WHERE y='edb';
ERROR: unrecognized table-function returnMode: 2822132

It should insert 11 tuples without any error or warning.... Inputs ?

Thanks,

Anupama

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2008-12-18 11:47:13 Re: Partitioning wiki page
Previous Message Heikki Linnakangas 2008-12-18 11:21:49 Re: Visibility map and freezing