Re: BUG? server closed the connection unexpectedly 7.4 on Windows (cygwin)

Lists: pgsql-bugs
From: "ezra epstein" <ee_newsgroup_post(at)prajnait(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG? server closed the connection unexpectedly 7.4 on Windows (cygwin)
Date: 2004-02-08 02:36:09
Message-ID: 3LWcndATy-LlArjdXTWc-g@speakeasy.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs

The following query yields:

PublishWorks=> select count(*) from merchandise.ds_item(6);
count
-------
815
(1 row)

Yet the following produces:

PublishWorks=> select count(item.*) from merchandise.ds_item(6) item;
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.
!>

As does:

PublishWorks=> select count(item.*) from merchandise.ds_item(6) as item;
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.
!>


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "ezra epstein" <ee_newsgroup_post(at)prajnait(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG? server closed the connection unexpectedly 7.4 on Windows (cygwin)
Date: 2004-02-15 17:33:29
Message-ID: 9039.1076866409@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs

"ezra epstein" <ee_newsgroup_post(at)prajnait(dot)com> writes:

> PublishWorks=> select count(item.*) from merchandise.ds_item(6) item;
> server closed the connection unexpectedly

I can't duplicate it here; sure the problem isn't in your function?

regression=# create function z() returns setof tenk1 as
regression-# 'select * from tenk1' language sql;
CREATE FUNCTION
regression=# select count(*) from z();
count
-------
10000
(1 row)

regression=# select count(a.*) from z() a;
count
-------
10000
(1 row)

regards, tom lane