age icon indicating copy to clipboard operation
age copied to clipboard

Function age_create_barbell_graph doesn't behave properly when called more than once.

Open markgomer opened this issue 2 years ago • 0 comments

Describe the bug When called more than once, the created complete graphs doesn't connect as a Barbell graph, according to the following figure:

image

How are you accessing AGE (Command line, driver, etc.)?

  • Accessing AGE through psql interface and age-viewer.

What is the command that caused the error?

Just calling the function twice exposes the bug:

SELECT age_create_barbell_graph('barbell',5,0,'vlabel','{}','elabel','{}');
SELECT age_create_barbell_graph('barbell',7,0,'vlabel','{}','elabel','{}');

Expected behavior Each call of the function should create two complete graphs connected with a bridge between them. For reference.

Environment:

  • Version: [PostgreSQL 11.19] [Apache AGE 1.2.0]

markgomer avatar Apr 27 '23 14:04 markgomer