final class AlterTablespaceOptions
    implements Statement
    uses Snapshot
Public API: explicitly declared with @visibility public.

A request to set or reset parameters of a tablespace.

Rule: PG-TABLESPACE-003. Mirrors AlterTableSpaceOptionsStmt with its isReset flag. RESET names parameters only; a value given to RESET is a diagnostic. Source: https://www.postgresql.org/docs/17/sql-altertablespace.html. Status: Implemented.

Resetting a parameterdoctest
$operation = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('ALTER TABLESPACE fast RESET (seq_page_cost)');
    [$operation->statement->reset, $operation->facts->diagnostics] // => [true, []]

Properties§

public non-empty-list<Definition> $options
public Name $name
public bool $reset

Methods§

public function __construct(public Name $name, public bool $reset, list<Definition> $options)

Parameters

$nameNameThe tablespace name
$resetboolWhether the parameters are reset instead of set
$optionslist<Definition>The parameters; at least one
Calls 2
public function deriveStatement(Derivation $derivation): void

Derives the values and reports a value given to RESET.

Parameters

$derivationDerivation
Calls 5
public function render(Output $out): void

Writes the request.

Parameters

$outOutput
Calls 2

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 2