pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruno Wolff III <bruno@wolff.to>
To: pgsql-general@postgresql.org
Subject: Re: Trying to understand odd trigger behavior
Date: Sun, 17 Jun 2018 12:31:51 -0500
Message-ID: <20180617173151.GA9320@wolff.to> (raw)
In-Reply-To: <20180615040424.GA18759@wolff.to>
References: <20180615040424.GA18759@wolff.to>

On Thu, Jun 14, 2018 at 23:04:24 -0500,
  Bruno Wolff III <bruno@wolff.to> wrote:
>
>I have a perl after insert trigger for a table with a non-null column 
>element and I am getting an occasional error when the trigger executes 
>for printing a null value which is $TD->{new}{element}. However, I do 
>the insert with an on conflict that converts it into an update. And I 
>have a before update trigger that blocks changing the record, but 
>returns null if the old and new records are the same.

I think I misunderstood the error I was getting. I don't think the value 
being printed is null, but rather the socket instance I am trying to 
print to. I haven't tested this yet, but it makes sense and my other theory 
didn't match later evidence.




view thread (5+ messages)

Message-ID: <20180617173151.GA9320@wolff.to>
Permalink:  ../20180617173151.GA9320@wolff.to/
Also on:    postgresql.org/message-id/20180617173151.GA9320@wolff.to

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: bruno@wolff.to
  Subject: Re: Trying to understand odd trigger behavior
  In-Reply-To: <20180617173151.GA9320@wolff.to>
  References: <20180615040424.GA18759@wolff.to> <20180617173151.GA9320@wolff.to>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox