> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bijection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Amazon Redshift relation source

> Observe a local Redshift table through a native SQL receiver.

Pass `redshiftRelation("cluster.example.redshift.amazonaws.com:5439", login)` as `provider` in the [SQL mount example](https://docs.bijection.com/integrations/native-sql.md#mount-and-bind).
Mount once per observed table. Rows and positions use the SQL mount’s label.

Seal the receiver credential with `bijection secret set`. Use a database
login with read access to the chosen table and access to its catalog
metadata. TLS verifies the reviewed endpoint using deployment trust.

```json theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
{
  "username": "inventory_reader",
  "password": "<database password>",
  "database": "inventory",
  "schema": "publishing",
  "table": "items",
  "key": [{"column": "region", "kind": "text"}, {"column": "id", "kind": "bigint"}],
  "columns": ["id", "name", "quantity"],
  "incarnation": "inventory-items-1"
}
```

Choose a local base table and one to eight non-null `BIGINT` or
`VARCHAR` key columns. Maintain uniqueness of the full tuple at the
source. Text keys use UTF-8 byte order. The profile projects one to sixteen named
Boolean, numeric, character, date or timestamp columns as Redshift text
or JSON null. Record keys are JSON arrays of strings up to 512 encoded bytes. A read-only transaction
publishes up to 32 rows and 48 KiB of encoded records per page, with a
24 KiB payload limit per row. The server statement deadline is 20 seconds.

Later traversals refresh observed keys and keep missing keys in the mount.
Change the configured incarnation when replacing or restoring the source,
including restores that preserve catalog IDs, and authorize a reset at
the health revision and gap instant.

## Write a declared relation

Follow the [parameterized SQL write guide](https://docs.bijection.com/integrations/native-sql.md#parameterized-sql-writes)
for the writer binding, composite and text keys, declared projection and
provider affected-row evidence.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.