Re: remaining sql/json patches

Alvaro Herrera <alvherre@alvh.no-ip.org>

From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Amit Langote <amitlangote09@gmail.com>
Cc: Andres Freund <andres@anarazel.de>, Andrew Dunstan <andrew@dunslane.net>, jian he <jian.universality@gmail.com>, Erik Rijkers <er@xs4all.nl>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2023-11-27T10:42:10Z
Lists: pgsql-hackers

Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. SQL/JSON: Various improvements to SQL/JSON query function docs

  2. SQL/JSON: Fix some obsolete comments.

  3. SQL/JSON: Fix issues with DEFAULT .. ON ERROR / EMPTY

  4. JSON_TABLE: Add support for NESTED paths and columns

  5. Fix JsonExpr deparsing to emit QUOTES and WRAPPER correctly

  6. Fix typo introduced in 6185c9737

  7. Add basic JSON_TABLE() functionality

  8. Avoid splitting errmsg string to span multiple lines

  9. Add SQL/JSON query functions

  10. Implement various jsonpath methods

  11. Add soft error handling to some expression nodes

  12. Adjust populate_record_field() to handle errors softly

  13. Refactor code used by jsonpath executor to fetch variables

  14. Test EXPLAIN (FORMAT JSON) ... XMLTABLE

  15. Simplify productions for FORMAT JSON [ ENCODING name ]

  16. Add trailing commas to enum definitions

  17. doc: add missing <returnvalue> and whitespace

  18. Add more SQL/JSON constructor functions

  19. Rename a nonterminal used in SQL/JSON grammar

  20. Some refactoring to export json(b) conversion functions

  21. Don't include CaseTestExpr in JsonValueExpr.formatted_expr

  22. Code review for commit b6e1157e7d

  23. Pass constructName to transformJsonValueExpr()

  24. Unify JSON categorize type API and export for external use

  25. Make some indentation in gram.y consistent

  26. Allow most keywords to be used as column labels without requiring AS.

  27. Reduce size of backend scanner's tables.

  28. Use perfect hashing, instead of binary search, for keyword lookup.

On 2023-Nov-27, Amit Langote wrote:

> >  For example, the jump between 13 and 14 looks worse.
> > (I do wonder what happened there.)
> 
> The following commit sounds like it might be related?

Yes, but not only that one.  I did some more trolling in the commit log
for the 14 timeframe further and found that the following commits are
the ones with highest additions to YYLAST during that cycle:

 yylast │ yylast_addition │   commit   │                                    subject                                     
────────┼─────────────────┼────────────┼────────────────────────────────────────────────────────────────────────────────
 106051 │            1883 │ 92bf7e2d02 │ Provide the OR REPLACE option for CREATE TRIGGER.
 105325 │            1869 │ 06a7c3154f │ Allow most keywords to be used as column labels without requiring AS.
 104395 │            1816 │ 45b9805706 │ Allow CURRENT_ROLE where CURRENT_USER is accepted
 107537 │            1139 │ a4d75c86bf │ Extended statistics on expressions
 105410 │            1067 │ b5913f6120 │ Refactor CLUSTER and REINDEX grammar to use DefElem for option lists
 106007 │             965 │ 3696a600e2 │ SEARCH and CYCLE clauses
 106864 │             733 │ be45be9c33 │ Implement GROUP BY DISTINCT
 105886 │             609 │ 844fe9f159 │ Add the ability for the core grammar to have more than one parse target.
 108400 │             571 │ ec48314708 │ Revert per-index collation version tracking feature.
 108939 │             539 │ e6241d8e03 │ Rethink definition of pg_attribute.attcompression.

but we also have these:

 105521 │            -530 │ 926fa801ac │ Remove undocumented IS [NOT] OF syntax.
 104202 │            -640 │ c4325cefba │ Fold AlterForeignTableStmt into AlterTableStmt
 104168 │            -718 │ 40c24bfef9 │ Improve our ability to regurgitate SQL-syntax function calls.
 108111 │            -828 │ e56bce5d43 │ Reconsider the handling of procedure OUT parameters.
 106398 │            -834 │ 71f4c8c6f7 │ ALTER TABLE ... DETACH PARTITION ... CONCURRENTLY
 104402 │            -923 │ 2453ea1422 │ Support for OUT parameters in procedures
 103456 │            -939 │ 1ed6b89563 │ Remove support for postfix (right-unary) operators.
 104343 │           -1178 │ 873ea9ee69 │ Refactor parsing rules for option lists of EXPLAIN, VACUUM and ANALYZE
 102784 │           -1417 │ 8f5b596744 │ Refactor AlterExtensionContentsStmt grammar
(59 filas)

-- 
Álvaro Herrera        Breisgau, Deutschland  —  https://www.EnterpriseDB.com/
"How strange it is to find the words "Perl" and "saner" in such close
proximity, with no apparent sense of irony. I doubt that Larry himself
could have managed it."         (ncm, http://lwn.net/Articles/174769/)