DominicWuest opened a new issue, #898:
URL: https://github.com/apache/age/issues/898

   I found a bug using my cypher fuzzer.
   
   When running the following query against an empty database:
   ```
   CREATE () WITH * MATCH (x{n0:x.n1}) RETURN 0
   ```
   
   The postgres instance crashes and goes into recovery mode.
   
   I encountered this issue when testing queries against the 
**apache/age:PG13_latest** docker image.
   
   ### Steps to reproduce
   
   Spin up a local instance of **apache/age:PG13_latest**: `docker run -e 
POSTGRES_PASSWORD=123 --rm --name age apache/age:PG13_latest`
   
   Get a shell in the docker container: `docker exec -it age /bin/bash`
   
   Connect to postgres: `su postgres -c psql`
   
   Run the following queries:
   ```psql
   LOAD 'age';
   -
   SET search_path = ag_catalog, "$user", public;
   -
   SELECT create_graph('graph');
   -
   SELECT * FROM cypher('graph',$$
       CREATE () WITH * MATCH (x{n0:x.n1}) RETURN 0
   $$) as (v agtype);
   ```
   
   ### Expected behavior
   The query should run successfully
   
   ### Actual behavior
   The database crashes


-- 
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]

Reply via email to