public inbox for [email protected]  
help / color / mirror / Atom feed
From: David G. Johnston <[email protected]>
To: Roger Mason <[email protected]>
Cc: pgsql-novice <[email protected]>
Subject: Re: trigger fails
Date: Sat, 28 Aug 2021 07:38:53 -0700
Message-ID: <CAKFQuwZt-hZj8_p4=hcZ5tWAYw1ZMwkiDiDNTtznmsASYpuZig@mail.gmail.com> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>

On Saturday, August 28, 2021, Roger Mason <[email protected]> wrote:

>
> I have tried various modifications of get_final_energy without success.
>

If get_final_energy() isn’t working as you expect (and its definition is
highly suspect so I wouldn’t be surprised) then all of this talk about
triggers is just adding unnecessary distraction.  Don’t add triggers to the
mix until you know the components are all functioning correctly.

I’d also suggest not doing create table if not exists in a trigger.
Whatever code you use to install the triggers should create the table
immediately and then the trigger just assumes it is present.

As for debugging the big query, you just need to learn by doing.  Start
writing it again from scratch and when you get to a point where it provide
unusual results stop and figure out why.

David J.


view thread (9+ messages)  latest in thread

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 using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: trigger fails
  In-Reply-To: <CAKFQuwZt-hZj8_p4=hcZ5tWAYw1ZMwkiDiDNTtznmsASYpuZig@mail.gmail.com>

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

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