final class AttachIndex
    implements AlterCommand
    uses Snapshot
Public API: explicitly declared with @visibility public.

ATTACH PARTITION of ALTER INDEX: makes an index a partition of the altered partitioned index.

Mirrors AT_AttachPartition on an index. The index is looked up by the server; a version 1 context declares no indexes. Source: https://www.postgresql.org/docs/17/sql-altertable.html.

Attaching an indexdoctest
$statement = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('ALTER INDEX pi ATTACH PARTITION pi1');
    $statement->toString() // => 'ALTER INDEX pi ATTACH PARTITION pi1'

Properties§

public QualifiedName $index

Methods§

public function __construct(public QualifiedName $index)

Parameters

$indexQualifiedNameThe index
public function deriveClause(Derivation $derivation, Environment $environment): void

Derives nothing: the index is a catalog name.

Parameters

$derivationDerivation
$environmentEnvironment
public function render(Output $out): void

Writes the action.

Parameters

$outOutput
Calls 3

Test cases 2§

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

Dedicated tests 1
Other tests reaching this symbol 1

Relations§

Instantiated in 1
Type checks 2