npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@muench-dev/n8n-nodes-postgres

v0.2.14

Published

n8n community node for extended Postgres operations

Readme

@muench-dev/n8n-nodes-postgres

@muench-dev/n8n-nodes-postgres is an n8n community node that adds Postgres checks and metadata lookups that are not covered by the built-in Postgres node.

It is designed for workflows that need to filter incoming items based on database state, detect changes in a tracked column, or inspect schemas, tables, and views directly from PostgreSQL.

Installation Operations Credentials Compatibility Usage Resources Version history

Installation

Follow the n8n community nodes installation guide.

For a self-hosted n8n instance, you can also install the package directly:

npm install @muench-dev/n8n-nodes-postgres

After installation, restart n8n and search for Postgres Extended in the node picker.

Operations

The package currently provides one node: Postgres Extended.

Supported operations:

| Resource | Operation | What it does | | -------- | ------------------- | ------------------------------------------------------------------------- | | Check | Row Exists | Outputs only items for which at least one matching row exists | | Check | Row Does Not Exist | Outputs only items for which no matching row exists | | Check | Row Count Threshold | Outputs only items whose matching row count satisfies a threshold | | Check | Value Has Changed | Outputs only items where a watched column differs from the expected value | | Metadata | List Schemas | Returns database schemas | | Metadata | List Tables | Returns base tables for a selected schema | | Metadata | List Views | Returns views for a selected schema |

Credentials

This package does not ship its own credential type.

Postgres Extended reuses n8n's built-in postgres credential, so you can point it at the same database connections you already use with the core Postgres node.

Typical setup:

  1. Create or reuse a standard Postgres credential in n8n.
  2. Configure host, port, database, username, password, and SSL settings as needed.
  3. Select that credential in Postgres Extended.

The node uses the same connection details supported by the core credential, including SSL-enabled connections.

Compatibility

  • Built as an n8n community node package using n8nNodesApiVersion: 1
  • Depends on the built-in n8n postgres credential being available
  • Best suited for current self-hosted n8n versions that support community nodes and the core Postgres node

If you run an older n8n release and the built-in Postgres credential differs from current n8n behavior, verify the node in a staging environment first.

Usage

Check operations

All check operations work item-by-item. The node evaluates the configured schema, table, and conditions for each incoming item and only forwards items that match the selected rule.

Available condition operators:

  • Equal
  • Not Equal
  • Like
  • Greater Than
  • Less Than
  • Greater Than Or Equal
  • Less Than Or Equal
  • Is Null
  • Is Not Null

You can combine conditions with either:

  • All Conditions
  • Any Condition

Row Exists

Use this when a workflow item should continue only if a matching row is already present.

Example: continue only if public.users contains a row where email = {{$json.email}}.

Row Does Not Exist

Use this to prevent duplicates.

Example: continue only if public.users does not contain a row where external_id = {{$json.id}}.

Row Count Threshold

This operation compares the number of matching rows against a threshold using one of these comparisons:

  • At Least
  • More Than
  • Exactly
  • Less Than
  • At Most

When an item matches, the node adds these fields to the output JSON:

  • rowCount
  • threshold

Value Has Changed

Use this to detect whether a database value is no longer what you expect.

You provide:

  • conditions to identify the row
  • a Watch Column
  • an Expected Value

When the current database value differs from the expected value, the item is forwarded and enriched with:

  • currentValue
  • expectedValue

This is useful for change detection, status monitoring, and guarding downstream steps.

Metadata operations

Metadata operations ignore item content and return database structure information instead:

  • List Schemas returns schemaName
  • List Tables returns tableName and schemaName
  • List Views returns viewName and schemaName

Notes

  • Schema and table names can be selected from n8n resource pickers or entered manually.
  • Column options are loaded dynamically from the selected table.
  • LIKE supports PostgreSQL wildcard matching such as % and _.
  • Value Has Changed requires at least one matching row. If none is found, the node errors unless Continue On Fail is enabled.
  • Continue On Fail is supported, so per-item database errors can be emitted as error items instead of failing the whole execution.

Resources

Version history

0.2.1

Current package version.

Includes:

  • Postgres Extended node
  • check operations for row existence, row absence, row count thresholds, and value change detection
  • metadata operations for schemas, tables, and views