pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #5777: Server crash with function out params returned as record
2+ messages / 2 participants
[nested] [flat]
* BUG #5777: Server crash with function out params returned as record
@ 2010-12-01 02:46 Nate Carson <nate1001@gmail.com>
2010-12-01 03:36 ` Re: BUG #5777: Server crash with function out params returned as record Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 2+ messages in thread
From: Nate Carson @ 2010-12-01 02:46 UTC (permalink / raw)
To: pgsql-bugs
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
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: BUG #5777: Server crash with function out params returned as record
2010-12-01 02:46 BUG #5777: Server crash with function out params returned as record Nate Carson <nate1001@gmail.com>
@ 2010-12-01 03:36 ` Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2010-12-01 03:36 UTC (permalink / raw)
To: Nate Carson <nate1001@gmail.com>; +Cc: pgsql-bugs
"Nate Carson" <nate1001@gmail.com> writes:
> 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
Huh ... seems that's been broken since 8.1. Surprising nobody noticed
before. Thanks for the report!
regards, tom lane
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2010-12-01 03:36 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2010-12-01 02:46 BUG #5777: Server crash with function out params returned as record Nate Carson <nate1001@gmail.com>
2010-12-01 03:36 ` Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox