When this happens...
PostgreSQLNew Row (Custom Query)
Then do this...
GmailSend Email

Need to make sure your contacts are notified the moment a new row on your PostgreSQL database matches some particular conditions? Activate this Zap and we'll take care of that for you. Once you do, any new match for a PostgreSQL custom query will automatically send off a new email via Gmail, informing all your recipient(s) of what's new without forcing you to interrupt the rest of your activity.

How It Works

  1. A new match is found for a custom query on PostgreSQL
  2. Zapier automatically creates sends an email on Gmail

What You Need

  • PostgreSQL account
  • Gmail account

Why Zapier?


Get started for free—14 day trial of premium features and apps.


No coding required—automate any of 1,500+ apps in minutes.


Enterprise-level security—connect mission-critical apps.

It's easy to connect Gmail + PostgreSQL and requires absolutely zero coding experience—the only limit is your own imagination.

When this happens...
then do this!
New Email Matching Search

Triggers when you receive a new email that matches a search string you provide.

Create Draft

Create (but do not send) a new email message.

New Labeled Email

Triggers when you receive a new email and label it within two days.

Send Email

Create and send a new email message.

New Attachment

Triggers when you receive a new attachment (triggers once per attachment).

Update Row

Updates an existing row.

New Starred Email

Triggers when you receive a new email and star it within two days.

New Row

Adds a new row.

New Thread

Triggers when a new thread starts.

Create Label

Creates a new label.

Use our free platform to build a single Zapier integration and instantly connect your app with 1,500+ others.

Become a Zapier Integration Partner

One of the most popular email services, Gmail keeps track of all your emails with treaded conversations, tags, and Google-powered search to locate find any message you need.

Learn More

PostgreSQL is a powerful, open-source database engine with a uniquely advanced query optimizer and dozens of built in features, making it an easy choice for production databases.

See PostgreSQL Integrations