YSQL supports all PostgreSQL-compatible built-in functions and operators. The following are the currently documented ones.

Statement Description
nextval() Returns the next value for the specified sequence in the current session
currval() Returns the value returned by the most recent call to nextval() for the specified sequence in the current session
lastval() Returns the value returned by the most recent call to nextval() for any sequence in the current session
yb_hash_code() Returns the partition hash code for a given set of expressions
yb_is_local_table() Returns whether the given 'oid' is a table replicated only in the local region
JSON functions and operators Detailed list of JSON-specific functions and operators
Array functions and operators Detailed list of array-specific functions and operators
Aggregate functions Detailed list of YSQL aggregate functions
Window functions Detailed list of YSQL window functions
Date-time operators List of operators for the date and time data types
General-purpose date-functions List of general purpose functions for the date and time data types
Date-time formatting functions List of formatting functions for the date and time data types