Skip to content

to_timestamp

Enterprise scalar function reference.

Function Snapshot

Field Value
Function to_timestamp
Category Date and Time
Scope Scalar expression
Discovery SELECT * FROM pg_catalog.pg_proc WHERE proname = 'to_timestamp';

Purpose

Converts Unix epoch seconds into TIMESTAMP WITH TIME ZONE.

Syntax

SELECT to_timestamp(1700000000);

Parameters

  • epoch_seconds: integer/float/numeric Unix epoch seconds.

Returns

  • Returns function-specific scalar/array/object according to resolved overload.

Null and Error Behavior

  • Most overloads are deterministic and null-propagating unless documented otherwise.
  • Validate concrete overload behavior with pg_catalog.pg_proc in your running build.

Operational Notes

  • Use schema-qualified objects and parameterized queries for production pipelines.
  • Validate overload details in-cluster with pg_catalog.pg_proc and pg_get_function_result(oid).

Cross-References