PostgresQueryIndex

data class PostgresQueryIndex(val name: String, val table: String, val ddl: String)

A planned expression index: its physical name, its table (quoted) and the statement that creates it.

Constructors

Link copied to clipboard
constructor(name: String, table: String, ddl: String)

Properties

Link copied to clipboard
val ddl: String
Link copied to clipboard

The fingerprint of the planned definition, recorded on the index as its comment when it is built: an existing index of the name whose comment differs (another definition, or none: built before) is drift. It hashes the DDL text, so any edit of that text (this planner's, or a key's expression) rebuilds every declared index of every deployment at its next start under auto, and is refused under validate until then.

Link copied to clipboard
Link copied to clipboard