# `Electric.Postgres`
[🔗](https://github.com/electric-sql/electric/tree/%40core/sync-service%401.6.2/packages/sync-service/lib/electric/postgres.ex#L1)

# `display_settings`

```elixir
@spec display_settings() :: [String.t()]
```

Configuration settings that affect formatting of values of certain types.

These settings should be set for the current session before executing any queries or
statements to safe-guard against non-standard configuration being used in the Postgres
database cluster or even the specific database Electric is configured to connect to.

The settings Electric is sensitive to are:

  * `bytea_output`       - determines how Postgres encodes bytea values. It can use either Hex- or
                           Escape-based encoding.

  * `DateStyle`          - determines how Postgres interprets date values.

  * `TimeZone`           - affects the time zone offset Postgres uses for timestamptz and timetz values.

  * `extra_float_digits` - determines whether floating-point values are rounded or are encoded precisely.

  * `IntervalStyle`      - determines how Postgres interprets and formats interval values.

# `supported_types`

All types currently supported by Electric

## Tests

    iex> :bool in supported_types()
    true

# `supported_types_only_in_functions`

All types currently supported by Electric only in functions

## Tests

    iex> :interval in supported_types_only_in_functions()
    true

---

*Consult [api-reference.md](api-reference.md) for complete listing*
