Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mLV3X-0002Uw-4b for pgsql-novice@arkaria.postgresql.org; Wed, 01 Sep 2021 18:33:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mLV3V-00039R-EZ for pgsql-novice@arkaria.postgresql.org; Wed, 01 Sep 2021 18:33:49 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mLUTF-0005w7-UU for pgsql-novice@lists.postgresql.org; Wed, 01 Sep 2021 17:56:21 +0000 Received: from esa05.ucs.mun.ca ([134.153.136.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mLUT7-0008Jc-50 for pgsql-novice@postgresql.org; Wed, 01 Sep 2021 17:56:18 +0000 IronPort-SDR: q2rLeQ5n5rvJPg7hwKSF9gd7YM2EbpWpoZz42lYXNlGNlqL7OURXGDJ7HpAH1gLSDkKkRz53Av jfTI6sMtxpPpqIOH7KVNoebSFa1OffcydrpA2+jhLQI8VsGNBCO9/Py5A91S7WXFu02nK50kiX WCa9uVmytHMPVYf7y29KEe4/cu1fLJT4ygasE9klPOUy2pf6IMhpiln+md3Z6dHvcB8ApbEkKw TU9R4gf84hN/SzBVfNyTu6Qmb+PS9M27Q6Yu0V6zGxQ25hAAaKmgynHWmj4ze/Y0/c8csVJhvh 96M= IronPort-HdrOrdr: =?us-ascii?q?A9a23=3ATKjhl6l3JYGr3q2pJVllfsZB4hDpDfIo3D?= =?us-ascii?q?Abv31ZSRFFG/Fw9vre/sjzuiWUtN98YhwdsPCGfLKNWHbNsYNyiLN+AV7AZn?= =?us-ascii?q?iEhILLFuFfBOLZqlXd8m/FndK1vp0OT0ERMrHNJGRhgd2/6Ae1FMtI+rO6zJ?= =?us-ascii?q?w=3D?= X-IronPort-AV: E=Sophos;i="5.84,370,1620700200"; d="scan'208";a="59455444" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from cpe00fc8db7a323-cm00fc8db7a320.cpe.net.cable.rogers.com (HELO pyrope.local) ([174.117.202.255]) by smtp05.ucs.mun.ca with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Sep 2021 15:26:09 -0330 References: <20210830081718.GA8307@depesz.com> <20210830120948.GA19692@depesz.com> <20210830133617.GA9900@depesz.com> User-agent: mu4e 1.5.6; emacs 27.2 From: Roger Mason To: pgsql-novice Subject: Re: trigger fails In-reply-to: <20210830133617.GA9900@depesz.com> Date: Wed, 01 Sep 2021 15:26:07 -0230 Message-ID: MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello, hubert depesz lubaczewski writes: > Now your script fails with: > ERROR: column results.totenergy_out does not exist > > If you want help, please, pretty please with cherry on top - make > *usable* test script. > Write it, test by psql -f ..., and then send if it: > 1. works > 2. shows the problem I apologise for sending an unworkable script and wasting your time. Thank you for your help. I now have a version that works correctly, although with limited testing so far. Best wishes, Roger