X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 89CD1D1C9E5 for ; Sun, 3 Aug 2003 21:59:48 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 57898-09 for ; Sun, 3 Aug 2003 18:58:36 -0300 (ADT) Received: from joeconway.com (66-146-172-86.skyriver.net [66.146.172.86]) by svr1.postgresql.org (Postfix) with ESMTP id 24F1FD1C9DB for ; Sun, 3 Aug 2003 18:59:37 -0300 (ADT) Received: from [192.168.5.3] (account jconway HELO joeconway.com) by joeconway.com (CommuniGate Pro SMTP 4.0.6) with ESMTP-TLS id 21824; Sun, 03 Aug 2003 14:21:18 -0700 Message-ID: <3F2D84FF.3070304@joeconway.com> Date: Sun, 03 Aug 2003 14:56:15 -0700 From: Joe Conway User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3) Gecko/20030312 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tom Lane Cc: Hans Spaans , pgsql-admin@postgresql.org Subject: Re: concat_ws References: <20030803131931.GD4326@sch01r01.nexit.nl> <26941.1059926135@sss.pgh.pa.us> <3F2D4B3B.3050405@joeconway.com> <6571.1059934474@sss.pgh.pa.us> In-Reply-To: <6571.1059934474@sss.pgh.pa.us> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/45 X-Sequence-Number: 9768 Tom Lane wrote: > It seems to be running out of memory. I'm not sure what's eating so > much RAM --- the expression isn't that complex. Also it seems that > elog.c's ability to handle a shortage of memory has regressed ... > 'ERROR: ERRORDATA_STACK_SIZE exceeded' is better than a core dump, > I suppose, but it's not supposed to fail at all ... > > Anyway, seems we have a couple different bugs to chase in CVS tip. > Another piece of the puzzle -- if the functions are defined: ...language sql IMMUTABLE STRICT; instead of just ...language sql IMMUTABLE; the function returns immediately even with 32 arguments (on 7.4devel): regression=# explain analyze select concat_ws('~','01','02','03','04','05','06','07','08','09','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27','28','29','30','31'); QUERY PLAN ---------------------------------------------------------------------------------- Result (cost=0.00..0.01 rows=1 width=0) (actual time=0.00..0.00 rows=1 loops=1) Total runtime: 0.02 msec (2 rows) Also worth noting, without STRICT, even a plain EXPLAIN *without* ANALYZE causes the problem to show itself. Joe