Postgres module

statement_id

procedure · 1 overloadsince 0.27.0Source

A 64-bit statement id: the first eight bytes of SHA-256 of the rewritten statement.

statement_id :: (rewritten_sql: string) -> u64

A 64-bit statement id: the first eight bytes of SHA-256 of the rewritten statement.

Parameters

rewritten_sql: string
the statement with $n in place of %.

Returns

u64

See also