Re: TupleTableSlot API problem

From: Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: TupleTableSlot API problem
Date: 2009-03-30 03:15:03
Message-ID: 874oxbaeh4.fsf@news-spur.riddles.org.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

>>>>> "Tom" == Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:

>>> Yup, fails the same way on an --enable-cassert build of 8.3.7.

And on 8.2.13.

Tom> Do you have a quick test case? I just finished coding up my
Tom> plan-C fix, and I need some test cases ...

Andrew> This is the one I've been using:

This one is simpler and works on 8.2 as well:

create or replace function foo(n integer, out a text, out b text)
returns setof record language sql
as $f$ select 'foo '||i, 'bar '||i from generate_series(1,$1) i; $f$;

set work_mem=64;

select t.a, t, t.a from foo(100000) t limit 1;
ERROR: invalid memory alloc request size 2139062147

--
Andrew.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2009-03-30 03:29:56 Re: TupleTableSlot API problem
Previous Message Fujii Masao 2009-03-30 02:32:36 Re: New trigger option of pg_standby