pglast.printers.sfuncs — Special function printers

The PostgreSQL parser translates some SQL constructs into function calls, for example the expression EXTRACT(YEAR FROM date_column) is represented the same as pg_catalog.date_part('year', date_column).

This module declares some of those equivalences, implementing alternative printers that will be used when the option special_functions of the output stream is set to True.