Re: substring synopsis section, third argument is optional doc didn't show that

2025-01-21 Thread jian he
On Wed, Jan 22, 2025 at 12:53 AM Tom Lane wrote: > > jian he writes: > > https://www.postgresql.org/docs/current/functions-matching.html#FUNCTIONS-SIMILARTO-REGEXP > > > """ > > or as a plain three-argument function: > > substring(string, pattern, escape-character) > > """ > > > but here "escape-

Re: Typo on tutorial window page

2025-01-21 Thread Tom Lane
"David G. Johnston" writes: > I was going to write basically that but something feels off to me. Maybe > something like this: > "As shown here, the rank function produces a numerical ranking within each > partition, using the order defined by the ORDER BY clause. Ranking assigns > the same rank

Re: Typo on tutorial window page

2025-01-21 Thread David G. Johnston
On Tue, Jan 21, 2025 at 10:39 AM Tom Lane wrote: > PG Doc comments form writes: > > EXPECTED: > > As shown here, the rank function produces a numerical rank for each > distinct > > PARTITION BY value in the current row's partition, using the order > defined > > by the ORDER BY clause. rank needs

Re: Typo on tutorial window page

2025-01-21 Thread David G. Johnston
On Tue, Jan 21, 2025 at 10:39 AM Tom Lane wrote: > PG Doc comments form writes: > > EXPECTED: > > As shown here, the rank function produces a numerical rank for each > distinct > > PARTITION BY value in the current row's partition, using the order > defined > > by the ORDER BY clause. rank needs

Re: Typo on tutorial window page

2025-01-21 Thread Tom Lane
PG Doc comments form writes: > EXPECTED: > As shown here, the rank function produces a numerical rank for each distinct > PARTITION BY value in the current row's partition, using the order defined > by the ORDER BY clause. rank needs no explicit parameter, because its > behavior is entirely determ

Re: Request for Formal Syntax of WHERE Clause Conditions

2025-01-21 Thread Tom Lane
PG Doc comments form writes: > I am building a PostgreSQL parser and need a precise reference for the > formal syntax of condition used in the WHERE clause. We do not have one. You might be able to extract what you need from our Bison grammar though: https://git.postgresql.org/gitweb/?p=postgre

Request for Formal Syntax of WHERE Clause Conditions

2025-01-21 Thread PG Doc comments form
The following documentation comment has been logged on the website: Page: https://www.postgresql.org/docs/17/sql-select.html Description: Dear PostgreSQL Team, I am building a PostgreSQL parser and need a precise reference for the formal syntax of condition used in the WHERE clause. While the do

Typo on tutorial window page

2025-01-21 Thread PG Doc comments form
The following documentation comment has been logged on the website: Page: https://www.postgresql.org/docs/17/tutorial-window.html Description: EXPECTED: As shown here, the rank function produces a numerical rank for each distinct PARTITION BY value in the current row's partition, using the order

Improve examples: Provide the example which extend to the left of the range

2025-01-21 Thread PG Doc comments form
The following documentation comment has been logged on the website: Page: https://www.postgresql.org/docs/17/functions-range.html Description: Hi. All examples on this page uses `not extend` expression: ``` anyrange &< anyrange → boolean Does the first range not extend to the right of the secon

Re: substring synopsis section, third argument is optional doc didn't show that

2025-01-21 Thread Tom Lane
jian he writes: > https://www.postgresql.org/docs/current/functions-matching.html#FUNCTIONS-SIMILARTO-REGEXP > """ > or as a plain three-argument function: > substring(string, pattern, escape-character) > """ > but here "escape-character" is optional. > substring(string, pattern [,escape-charac

substring synopsis section, third argument is optional doc didn't show that

2025-01-21 Thread jian he
hi. https://www.postgresql.org/docs/current/functions-matching.html#FUNCTIONS-SIMILARTO-REGEXP """ or as a plain three-argument function: substring(string, pattern, escape-character) """ but here "escape-character" is optional. substring(string, pattern [,escape-character]) would be more accura