Re: doc: Reformat SELECT queries using GRAPH_TABLE - Mailing list pgsql-hackers

From Fujii Masao
Subject Re: doc: Reformat SELECT queries using GRAPH_TABLE
Date
Msg-id CAHGQGwHP4voXA5DU82hjqUTZarwSmsFeKG7FXSW+zCqaYgNCLA@mail.gmail.com
Whole thread
In response to doc: Reformat SELECT queries using GRAPH_TABLE  (Koshino Taiki <koshino@sraoss.co.jp>)
Responses Re: doc: Reformat SELECT queries using GRAPH_TABLE
List pgsql-hackers
On Wed, Aug 26, 2026 at 10:25 AM Koshino Taiki <koshino@sraoss.co.jp> wrote:
> I wasn't sure whether this should be part of the same patch,
> so I've attached two versions: v3 leaves it untouched,
> and v4 includes the change. Let me know which you'd prefer.

I think v3 is preferable. The corresponding relational query in
ddl.sgml is also long, but it isn't a GRAPH_TABLE example, so I think
we should keep this patch focused on reformatting GRAPH_TABLE examples.

If necessary, you could start a separate thread about reformatting long
query examples in the documentation. It might be better to review all
such examples and reformat them consistently, rather than addressing
only the long query in ddl.sgml mentioned here.


-GRAPH_TABLE (mygraph MATCH (p IS person)-[h IS has]->(a IS account)
-             COLUMNS (p.name AS person_name, h.since AS
has_account_since, a.num AS account_number)
+GRAPH_TABLE (mygraph
+    MATCH (p IS person)-[h IS has]->(a IS account)
+    COLUMNS (p.name AS person_name, h.since AS has_account_since,
a.num AS account_number)

Regarding v3 patch, this example in queries.sgml seems to be missing
the closing parenthesis for GRAPH_TABLE. That is, I think ")" should be
added at the end of the example above.


BTW, it would be helpful if you could trim the quoted text in your replies,
leaving only the parts relevant to your response. There's no need to
include the entire previous email at the bottom.

Regards,

--
Fujii Masao



pgsql-hackers by date:

Previous
From: "cca5507"
Date:
Subject: Re: Walreceiver create temp slot more than once when timeline switch
Next
From: Amit Kapila
Date:
Subject: Re: Assertion failure in GetSubscriptionRelations() with concurrent DROP TABLE