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

n8n-nodes-cloudsql-postgres

v1.2.1

Published

n8n node for Google Cloud's CloudSQL Postgres server, using the Cloud SQL Connector for authentication.

Readme

n8n-nodes-cloudsql-postgres

This is an n8n community node package that lets you work with Google Cloud SQL for PostgreSQL directly from n8n workflows.

It includes:

  • A database node for common SQL operations (select/insert/update/upsert/delete and custom queries)
  • A trigger node for PostgreSQL LISTEN/NOTIFY, including optional auto-created table-change triggers

n8n is a fair-code licensed workflow automation platform.

Installation
Operations
Credentials
Compatibility
Usage
Development
Resources
Version history

Installation

Follow the community nodes installation guide.

Package name:

n8n-nodes-cloudsql-postgres

For local development:

npm install
npm run dev

Operations

Cloud SQL (Postgres)

Supported operations:

  • Select rows from a table
  • Insert rows into a table
  • Update rows in a table
  • Insert or Update (upsert)
  • Delete Table/Rows with truncate, delete, or drop
  • Execute Query for custom SQL

Notable capabilities:

  • Query batching modes (single, independently, transaction)
  • Dynamic schema/table/column loading
  • Query parameter support ($1, $2, ...)
  • Optional return columns for write operations
  • Optional conversion behavior for large numbers and empty strings

Cloud SQL (Postgres) Trigger

Supported trigger modes:

  • Table Row Change Events: create and listen on a trigger/channel for INSERT, UPDATE, or DELETE
  • Advanced: listen on an existing PostgreSQL channel

Credentials

Credential name in n8n: Cloud SQL (Postgres)

Required fields:

  • Instance Connection Name (project:region:instance)
  • IP Type (PUBLIC, PRIVATE, PSC)
  • Authentication Type (PASSWORD or IAM)
  • Database
  • Maximum Number of Connections
  • Google Auth Method (Service Account JSON Key or Application Default Credentials)

Authentication behavior:

  • PASSWORD mode uses database User + Password
  • IAM mode uses IAM DB authentication with the service account identity
  • If Service Account JSON Key is selected, provide Service Account JSON
  • If Application Default Credentials is selected, credentials are taken from the runtime environment

Compatibility

  • Uses n8nNodesApiVersion: 1
  • Database node versions available: 2 through 8 (default: 8)
  • Trigger node version: 1

This package uses external dependencies (@google-cloud/cloud-sql-connector, google-auth-library, pg-promise) and has n8n.strict = false.

Because of that, this package is intended for self-hosted n8n and is not eligible for n8n Cloud verification.

Usage

Basic database setup

  1. Add Cloud SQL (Postgres) credentials.
  2. Set Instance Connection Name, IP Type, and auth settings.
  3. Add a Cloud SQL (Postgres) node and choose an operation.
  4. Select schema/table (or use expressions), then configure operation-specific fields.

Trigger setup

  1. Add a Cloud SQL (Postgres) Trigger node.
  2. Choose Table Row Change Events to auto-manage trigger/function/channel.
  3. Choose Advanced to listen on an existing channel.
  4. Activate the workflow to keep listening continuously.

Execute Query tips

  • Use query parameters instead of string concatenation.
  • Example query:
SELECT id, name
FROM users
WHERE status = $1 AND created_at >= $2
  • Set Query Parameters to something like: active,2026-01-01

Development

Available scripts:

  • npm run dev - Start n8n with watch mode
  • npm run build - Build dist/
  • npm run lint - Run linter
  • npm run lint:fix - Auto-fix lint issues
  • npm run release - Run release flow

Resources

Version history

  • 1.0.0 - Initial stable release of the Cloud SQL PostgreSQL database + trigger nodes