Re: server crash with CallStmt - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: server crash with CallStmt
Date
Msg-id dc8979aa-a5ee-ccf5-4ffa-cd112f885ecf@2ndquadrant.com
Whole thread Raw
In response to Re: server crash with CallStmt  (Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>)
List pgsql-hackers
On 12/13/17 04:46, Ashutosh Bapat wrote:
> I think it shouldn't reach this code. Like a normal function
> invocation, an aggregate invocation should not be allowed in a CALL
> statement. Here's patch to fix it. I thought that window function
> invocations and casts had similar problem, but they are prohibited by
> backend grammar.

Committed your fix, thanks.  I took out the hint, because calling an
aggregate function is a bit more complicated than just replacing the
CALL by SELECT.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


pgsql-hackers by date:

Previous
From: Mark Dilger
Date:
Subject: Re: [HACKERS] Something for the TODO list: deprecating abstime and friends
Next
From: David Steele
Date:
Subject: Re: PATCH: Exclude unlogged tables from base backups