| From: | Henson Choi <assam258(at)gmail(dot)com> |
|---|---|
| To: | Junwang Zhao <zhjwpku(at)gmail(dot)com> |
| Cc: | zengman <zengman(at)halodbtech(dot)com>, Ashutosh Bapat <ashutosh(dot)bapat(dot)oss(at)gmail(dot)com>, Peter Eisentraut <peter(at)eisentraut(dot)org>, Amit Langote <amitlangote09(at)gmail(dot)com>, Vik Fearing <vik(at)postgresfriends(dot)org>, Ajay Pal <ajay(dot)pal(dot)k(at)gmail(dot)com>, Imran Zaheer <imran(dot)zhir(at)gmail(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: SQL Property Graph Queries (SQL/PGQ) |
| Date: | 2026-03-18 14:47:15 |
| Message-ID: | CAAAe_zDo50MZyTsY9FqHXk+RVThssbP8VnJX-i8nYrEKWcfR2A@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi Junwang,
>> Yeah, I noticed that too, I will compose a patch for further review.
> >
> >
> > Great, looking forward to reviewing it.
>
> Here.
>
Thanks for the patch. The code changes look correct and match the
standard's scoping semantics (SR 18).
I applied the patch and ran the regression tests — all clean.
A couple of minor items:
1. pgindent alignment
The variable declaration on this line doesn't follow PostgreSQL's
tab-aligned style:
String *v = makeString(pstrdup(gep->variable));
Should be:
String *v = makeString(pstrdup(gep->variable));
Running pgindent on the file should fix this automatically.
2. Additional test coverage for edge patterns
The current tests cover vertex-to-vertex cross-references well.
How about adding a case where an edge WHERE clause references
vertex variables? For example:
-- edge WHERE cross-referencing vertex and edge properties
SELECT *
FROM GRAPH_TABLE (mygraph
MATCH (a)-[e WHERE e.weight > a.score]->(b)
COLUMNS (a.name AS a_name, e.weight AS e_wt,
b.name AS b_name)
) ORDER BY 1, 2;
This would ensure the fix covers edge element patterns too, not
just vertex patterns.
Otherwise, LGTM.
Regards,
Henson
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Bertrand Drouvot | 2026-03-18 14:51:01 | Re: Adding locks statistics |
| Previous Message | ls7777 | 2026-03-18 14:42:59 | Re: Patch for migration of the pg_commit_ts directory |