final class MaintenanceTarget
    implements Node
    uses Snapshot
Public API: explicitly declared with @visibility public.

A table VACUUM or ANALYZE processes, with the columns to analyze when some are listed.

Mirrors PostgreSQL's VacuumRelation (relation, va_cols). No column stands for every column. Source: https://www.postgresql.org/docs/17/sql-vacuum.html, https://www.postgresql.org/docs/17/sql-analyze.html.

Reading the columns of an analyzed tabledoctest
$operation = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('ANALYZE app.t (a, b)');
    [$operation->statement->targets[0]->table->schema->value, count($operation->statement->targets[0]->columns)] // => ['app', 2]

Properties§

public list<Name> $columns
public QualifiedName $table

Methods§

public function __construct(public QualifiedName $table, list<Name> $columns = [])

Parameters

$tableQualifiedNameThe table name
$columnslist<Name>The columns to analyze; none stands for every column
Calls 2
public function render(Output $out): void

Writes the table and the parenthesized columns.

Parameters

$outOutput
Calls 5

Test cases 1§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 1

Relations§

Instantiated in 1
Constant reads 2