risingwavelabs / risingwave

SQL stream processing, analytics, and management. We decouple storage and compute to offer instant failover, dynamic scaling, speedy bootstrapping, and efficient joins.
https://www.risingwave.com/slack
Apache License 2.0
6.48k stars 525 forks source link

frontend: implement `rw_flush` expression #13479

Open BugenZhao opened 7 months ago

BugenZhao commented 7 months ago

After we supported System Administration Functions after #12747, it seems also a good time for rewriting some statement-style control statements into expresion-style, which feels more consistent with Postgres.

One of those is the FLUSH statement. We may introduce an expression form like rw_flush() as an alias.

neverchanje commented 7 months ago

I wonder what is the use case of this expression?

fuyufjh commented 6 months ago

I wonder what is the use case of this expression?

IMO, a better alternative to flush statement?

xxchan commented 6 months ago

It seems PG supports both stmt style and expr style. e.g., SHOW <parameter> = SELECT current_setting('<parameter>');

So why expr style can be better?

github-actions[bot] commented 4 months ago

This issue has been open for 60 days with no activity. Could you please update the status? Feel free to continue discussion or close as not planned.