# Postgres error handling

**URL:** <https://community.n8n.io/t/postgres-error-handling/128786>\
**Category:** Help me Build my Workflow\
**Tags:** postgres\
**Created:** [June 7, 2025, 8:20pm UTC](https://community.n8n.io/t/postgres-error-handling/128786 "2025-06-07T20:20:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vvto](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/vvto/32/46181_2.png) [@vvto](https://community.n8n.io/u/vvto)\
**Post date:** [June 7, 2025, 8:20pm UTC](https://community.n8n.io/t/postgres-error-handling/128786/1 "2025-06-07T20:20:33Z")

</div>

## Describe the problem/error/question

I am trying to implement error handling in my flow. I took the database offline and in the postgres node I get an error:

```bash
getaddrinfo ENOTFOUND some-postgres

```

Great as expected.

My on Error options is set to “Continue (using error output)”:

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/f/d/fdc1839e680691e9350bde5efe6b99b60ab34644.png)

Therefore the postgres node has two outputs, success and error. In this case I would expect it to go to the error side of the flow. But it always go to the success part of it as the image shows.

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/9/7/97a08ed058630de2c8af74d9cd8ea89ed738de67.png)

## Questions

### 1) Am i doing anything wrong? is this a bug?

### 2) I want to answer to webhook based on the database answer. Is there a better a approach?

## Information on your n8n setup

- **n8n version:** 1.88.0
- **Database (default: SQLite):** postgress 17.5
- **n8n EXECUTIONS\_PROCESS setting (default: own, main):**
- **Running n8n via (Docker, npm, n8n cloud, desktop app):** Docker
- **Operating system:** Windows
