optionals commented on PR #2165:
URL: https://github.com/apache/age/pull/2165#issuecomment-3558965443
```sql
-- load 'age';
-- SET search_path = ag_catalog, "$user", public;
select * from create_graph('knowledge_graph');
SELECT
*
FROM
cypher ('knowledge_graph', $$
MERGE (n:TOPIC {id: '3tbr5xae-topic-ft1a', kg_id:
'3tbr5xae'})
RETURN n$$) AS (n agtype);
PREPARE age_merge_topic (agtype) AS
SELECT * FROM cypher('knowledge_graph', $$
MATCH (n:TOPIC {id: $id, kg_id: $kg_id})
SET n.name = $name
RETURN n
$$, $1) AS (n agtype);
-- crash in postgres 18.1
EXECUTE age_merge_topic('{"id": "3tbr5xae-topic-ft1a","kg_id": "3tbr5xae",
"name": "12"}'::agtype);
-- fine
PREPARE cypher_stored_procedure(agtype) AS
SELECT *
FROM cypher('knowledge_graph', $$
MATCH (v:Person)
WHERE v.name = $name
RETURN v
$$, $1)
AS (v agtype);
EXECUTE cypher_stored_procedure('{"name": "Tobias"}');
```
The above statements will cause the database to crash: Segmentation fault:
11, currently only found in the set operation.
But this statement runs normally when using the Docker version of apache/age
(Debian 17.7-3.pgdg13+, age 1.6.0).
macbook pro with with m4 , macOS 26.1
posgtgresql 18.1 from Homebrew
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]