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

# Enable log based sync on Postgres DB

> Get your database ready for log based syncs with Nekt.

## 0. Required pre work

In order to enable log based syncs, when [connecting Postgres database as a Source](/sources/postgres), make sure to prepare your database. Here's the procedure:

1. On RDS (or any other place where your database is located), modify the `postgresql.conf` configurations:

   **wal\_level** = logical
   **max\_replication\_slots** = 10
   **max\_wal\_senders** = 10

   If you are using RDS, this can be done through parameter groups. After you change the parameter group, reseting the database is required.

2. Create a replication slot using this command: ⁠ `SELECT * FROM pg_create_logical_replication_slot('nekt', 'wal2json');` ⁠
   <Warning>After the replication slot creation, the system will collect logs and, because of that, a raise on the database storage usage should be noticeduntil Nekt is done with reading the database.</Warning>

Done! With that, you are ready to follow the next steps and connect Nekt with your database through the interface of our application.

> If you encounter any issues, reach out to us via Slack, and we'll gladly assist you!

## Skills for agents

<Snippet file="agent-skills-intro.mdx" />

<Card title="Download Log Based sync skills file" icon="wand-magic-sparkles" href="/sources/postgres-log-based-sync.md">
  Log Based sync connector documentation as plain markdown, for use in AI agent contexts.
</Card>
