AssistanceDOCS
AssistanceDOCS

NEW variable is null in a trigger function.


When you create a function and call it from a trigger the NEW variable is only passed in if the trigger is on ROW operations

The UI currently defaults to STATEMENT which will not provide NEW or OLD variables to the function.

image

Also in SQL (reference: https://www.postgresql.org/docs/current/sql-createtrigger.html)

image

Metadata


Products

Database

Keywords

triggerfunctionstatementrowNEWOLDSQL

Is this helpful?


View discussion on GitHub

Infrastructure

  • Managed Services
  • Docker
  • Kubernetes
  • Kubernetes Migration

Platform

  • Overview
  • GitOps
  • Argo CD
  • Flux CD
  • Argo Workflows

Runners

  • Overview
  • GitHub Actions
  • GitLab Runners
  • Gitea Actions
  • Forgejo Actions
  • Azure DevOps
  • RunsOn
  • Security
  • Troubleshooting

Monitoring

  • Prometheus
  • Grafana
  • Pipelines

Security

  • Access Control
  • Secrets Management
  • Security Reporting

Guides

  • Overview
  • Kubernetes Setup
  • CI/CD Pipeline
  • Autoscaling

Learnings

  • Case Studies

Reference

  • CLI Installation

Community

  • Component Guide
  • Changelog

© Assistance Inc—ContributingAuthor StyleguideOpen Source
  1. Troubleshooting