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

   ### Configuration
   AGE Version: `apache/age:latest` (pulled 2025-12-07)
   
   Operating System: WSL2 – Ubuntu 24.04.1 LTS
   
   Installation Method: Docker
   
   
   ---
   
   ### Steps to reproduce
   
   1. Start AGE via Docker
   ```
   docker run \
     --name age \
     -p 5455:5432 \
     -e POSTGRES_USER=postgresUser \
     -e POSTGRES_PASSWORD=postgresPW \
     -e POSTGRES_DB=postgresDB \
     -d \
     apache/age:latest
   ```
   
   2. Connect with psql
   ```
   PGPASSWORD='postgresPW' psql -h localhost -p 5455 -U postgresUser -d 
postgresDB
   ```
   
   3. Run the following query
   ```
   SELECT ag_catalog.create_graph('a');
   SELECT ag_catalog.create_graph('aa');
   SELECT ag_catalog.create_graph('aaa');
   ```
   
   ---
   
   ### Expected behaviour
   Graph names with 1–2 characters should be accepted and the graphs created 
successfully. 
   Or documentation should explicitly mention any minimum length constraint for 
graph names if such a constraint is intended.
   
   ### Actual behaviour
   Graph names `a` and `aa` are rejected, while `aaa` is accepted.
   ```
   ERROR:  graph name is invalid
   ERROR:  graph name is invalid
   NOTICE:  graph "aaa" has been created
    create_graph
   --------------
   
   (1 row)
   ```


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