Re: function "cursor_to_xmlschema" causes a crash

2023-09-18 Thread Tom Lane
"=?UTF-8?B?5p2o5Lyv5a6HKOmVv+Wggik=?=" writes: > I recently notice that function "cursor_to_xmlschema" can lead to a crash if > the > cursor parameter points to the query itself. Here is an example: > postgres=# SELECT cursor_to_xmlschema('' :: refcursor, TRUE , FALSE , 'xxx' ) > into temp; > s

function "cursor_to_xmlschema" causes a crash

2023-09-18 Thread 杨伯宇(长堂)
Hello postgres hackers: I recently notice that function "cursor_to_xmlschema" can lead to a crash if the cursor parameter points to the query itself. Here is an example: postgres=# SELECT cursor_to_xmlschema('' :: refcursor, TRUE , FALSE , 'xxx' ) into temp; server closed the connection unexpecte