Thread: Modify standard PG type casts?

Modify standard PG type casts?

From
Łukasz Dejneka
Date:
Hi all

Is it possible to modify a type cast which is a standard cast in
Postgres? I need to modify the ::TSQuery type cast, so it points to my
own function. I would preffer not to create additional custom user
cast.

Manual only mentions about creating and dropping custom user casts via
SQL commands, I tried to locate the sourcecode which defines them, but
was unsuccessful... Maybe someone knows where it sits and could point
me to the right source file.

Is creating a custom cast the only option?

Thanks in advance