Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 077C41337B6F for ; Tue, 30 Nov 2010 22:46:08 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 43646-09 for ; Wed, 1 Dec 2010 02:46:08 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by mail.postgresql.org (Postfix) with ESMTP id 567221335B36 for ; Tue, 30 Nov 2010 22:46:07 -0400 (AST) Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by wwwmaster.postgresql.org (8.14.3/8.14.3) with ESMTP id oB12k7BW015619 for ; Wed, 1 Dec 2010 02:46:07 GMT (envelope-from www@wwwmaster.postgresql.org) Received: (from www@localhost) by wwwmaster.postgresql.org (8.14.3/8.14.3/Submit) id oB12k79I015617; Wed, 1 Dec 2010 02:46:07 GMT (envelope-from www) Date: Wed, 1 Dec 2010 02:46:07 GMT Message-Id: <201012010246.oB12k79I015617@wwwmaster.postgresql.org> To: pgsql-bugs@postgresql.org Subject: BUG #5777: Server crash with function out params returned as record From: "Nate Carson" Content-Type: text/plain; charset=utf-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 201011/225 X-Sequence-Number: 28805 The following bug has been logged online: Bug reference: 5777 Logged by: Nate Carson Email address: nate1001@gmail.com PostgreSQL version: 9.0.1 Operating system: windows 7 Description: Server crash with function out params returned as record Details: create or replace function test(out integer, out numeric) as $$ select (1, 2.1) $$ language sql; test=# select * from test(); server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request. The connection to the server was lost. Attempting reset: Failed. !> LOG: server process (PID 3336) was terminated by exception 0xC0000005 HINT: See C include file "ntstatus.h" for a description of the hexadecimal value. LOG: terminating any other active server processes When I chanage the function body to: select 1, 2.1 it works as expected. test=# select version(); PostgreSQL 9.0.1 on i686-pc-mingw32, compiled by GCC gcc.exe (GCC) 4.5.0, 32-bit