Re: segmentation fault in pg head with SQL function.

2018-04-11 Thread Peter Eisentraut
On 3/16/18 11:40, Tom Lane wrote: > Michael Paquier writes: >> On Fri, Mar 16, 2018 at 11:35:13AM +0530, Prabhat Sahu wrote: >>> postgres=# CREATE OR REPLACE FUNCTION func1() RETURNS VOID >>> LANGUAGE SQL >>> AS $$ >>> select 10; >>> $$; > >> Problem reproducible here, and the bug has been introd

Re: segmentation fault in pg head with SQL function.

2018-03-16 Thread Tom Lane
Michael Paquier writes: > On Fri, Mar 16, 2018 at 11:35:13AM +0530, Prabhat Sahu wrote: >> postgres=# CREATE OR REPLACE FUNCTION func1() RETURNS VOID >> LANGUAGE SQL >> AS $$ >> select 10; >> $$; > Problem reproducible here, and the bug has been introduced by fd1a421f. > It seems to me that the f

Re: segmentation fault in pg head with SQL function.

2018-03-16 Thread Michael Paquier
On Fri, Mar 16, 2018 at 11:35:13AM +0530, Prabhat Sahu wrote: > I found a segmentation fault on pg master Head with below steps and > stacktrace. > > postgres=# CREATE OR REPLACE FUNCTION func1() RETURNS VOID > LANGUAGE SQL > AS $$ > select 10; > $$; > CREATE FUNCTION > > postgres=# select func1

segmentation fault in pg head with SQL function.

2018-03-15 Thread Prabhat Sahu
Hi, I found a segmentation fault on pg master Head with below steps and stacktrace. postgres=# CREATE OR REPLACE FUNCTION func1() RETURNS VOID LANGUAGE SQL AS $$ select 10; $$; CREATE FUNCTION postgres=# select func1(); server closed the connection unexpectedly This probably means the server te