From 7dc590f1faba5e12bad67bfdd5b91d4cafe33499 Mon Sep 17 00:00:00 2001 From: Andres Taylor Date: Mon, 5 Feb 2024 10:24:29 +0100 Subject: [PATCH] summary: updated summary with 19.0 changes Signed-off-by: Andres Taylor --- changelog/19.0/19.0.0/summary.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/changelog/19.0/19.0.0/summary.md b/changelog/19.0/19.0.0/summary.md index a4b16111adc..1aee8ffa570 100644 --- a/changelog/19.0/19.0.0/summary.md +++ b/changelog/19.0/19.0.0/summary.md @@ -184,6 +184,29 @@ mysql> show warnings; A new flag `--vtcombo-bind-host` has been added to vttestserver that allows the users to configure the bind host that vtcombo uses. This is especially useful when running vttestserver as a docker image and you want to run vtctld commands and look at the vtcombo `/debug/status` dashboard. +### New lock syntax + +Vitess now supports the following LOCK syntax + +```sql +SELECT .. FOR SHARE (NOWAIT|SKIP LOCKED) +SELECT .. FOR UPDATE (NOWAIT|SKIP LOCKED) +``` + +### Support for AVG() aggregation function + +Vtgate can now evaluate `AVG` on sharded keyspaces, by using a combination of `SUM/COUNT` + +### Support for non-recursive CTEs + +Common table expressions that are not recursive can now be used. + +```sql +with userCount as ( + select id, count(*) as nr from user group by id) +select ref.col, userCount.nr +from ref join userCount on ref.user_id = userCount.id +``` ## Minor Changes