Re: Use or not record count on examples

From: Marcos Pegoraro <marcos(at)f10(dot)com(dot)br>
To: David Rowley <dgrowleyml(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Use or not record count on examples
Date: 2024-11-25 13:08:58
Message-ID: CAB-JLwaao5wseQDy9YHRd8W7V7CXqWpw9_3HAUJjH_n40TXB1g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Em dom., 24 de nov. de 2024 às 18:54, David Rowley <dgrowleyml(at)gmail(dot)com>
escreveu:

> > SELECT format('|%10s|', 'foo');

This example you said returns one value, so I think it is ok.
I'm talking about lists with multiple fields or multiple lines. In [1] we
have both modes.
I don't think that "(2 rows)" is useful

select jsonb_path_query(:'json', 'strict $.**.HR');
jsonb_path_query
------------------
73
135

select jsonb_path_query(:'json', 'lax $.track.segments[*].location ?(@[*] >
15)');
jsonb_path_query
------------------
47.763
47.706
(2 rows)

[1]
https://www.postgresql.org/docs/current/functions-json.html#FUNCTIONS-SQLJSON-STRICT-AND-LAX-MODES

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Ashutosh Bapat 2024-11-25 13:17:11 Re: meson and check-tests
Previous Message Peter Eisentraut 2024-11-25 12:16:14 Re: Add support for Tcl 9