Skip to content

aost: allow materialized view refresh with follower reads #96391

@dbist

Description

@dbist

Is your feature request related to a problem? Please describe.

refreshing materialized views and bypassing foreground traffic has immediate benefit.

Describe the solution you'd like

I'd like to use syntax similar to the following

refresh materialized view materialized_query as of system time '-10s';

Describe alternatives you've considered

n/a

Additional context

today, the error returned is

invalid syntax: statement ignored: at or near "as": syntax error
SQLSTATE: 42601
DETAIL: source SQL:
refresh materialized view materialized_query as of system time '-10s'

Related: #50753

Jira issue: CRDB-24099

Metadata

Metadata

Assignees

Labels

C-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)T-sql-foundationsSQL Foundations Team (formerly SQL Schema + SQL Sessions)v25.2.0-prerelease

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions