Skip to main content

canonical_function_name

Function canonical_function_name 

Source
pub fn canonical_function_name(name: &str) -> String
Expand description

The name a function reports, which is not always the name SPG parsed it under: count(*) is held as count_star so the star arity survives the AST, and that internal spelling must not reach a client. PG18 reports count. v7.39.13 — public, because Describe was naming the same call from a second map that did not have this entry.

count(*) is held as count_star so the star arity survives the AST. The projection mapped it back and the extended protocol’s Describe did not, so SELECT count(*) OVER () answered count in the row stream and count_star to \gdesc — an ORM-visible column name, and two answers to one question. Reported by sentori against 7.39.12.