bravius opened a new issue, #235:
URL: https://github.com/apache/age/issues/235
**Describe the bug**
MERGE followed by SET causes server process segfault.
**How are you accessing AGE (Command line, driver, etc.)?**
Bundled Node 'pg-age' driver.
**What data setup do we need to do?**
```pgsql
...
SELECT create_graph('test');
SELECT create_vlabel('test', 'node');
SELECT * FROM cypher('test', $$ CREATE (n:node {name: 'Jason'}) RETURN n $$)
AS (n agtype);
...
```
**What is the necessary configuration info needed?**
None.
**What is the command that caused the error?**
```pgsql
SELECT * FROM cypher('test', $$ MERGE (n:node {name: 'Jason'}) SET n.name =
'Lisa' RETURN n $$) AS (n agtype);
```
```
LOG: server process (PID 4853) was terminated by signal 11: Segmentation
fault
DETAIL: Failed process was running: SELECT * FROM cypher('test', $$ MERGE
(n:node {name: 'Jason'}) SET n.name = 'Lisa' RETURN n $$) AS (n agtype)
LOG: terminating any other active server processes
WARNING: terminating connection because of crash of another server process
DETAIL: The postmaster has commanded this server process to roll back the
current transaction and exit, because another server process exited abnormally
and possibly corrupted shared memory.
HINT: In a moment you should be able to reconnect to the database and
repeat your command.
LOG: all server processes terminated; reinitializing
LOG: database system was interrupted; last known up at 2022-06-20 20:15:58
UTC
FATAL: the database system is in recovery mode
LOG: database system was not properly shut down; automatic recovery in
progress
LOG: redo starts at 0/521B0A0
LOG: invalid record length at 0/526E288: wanted 24, got 0
LOG: redo done at 0/526E250
LOG: last completed transaction was at log time 2022-06-20
20:16:12.938992+00
LOG: database system is ready to accept connections
```
**Expected behavior**
Execute cypher query with no crashy crashy.
**Environment (please complete the following information):**
- postgresql with age extension running in Docker container on Windows 10
and WSL2
- Compiled from master.
**Additional context**
None.
--
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]