Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Uz08v-0007n7-Pt for pgsql-sql@arkaria.postgresql.org; Tue, 16 Jul 2013 07:57:54 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Uz08u-0002QR-U9 for pgsql-sql@arkaria.postgresql.org; Tue, 16 Jul 2013 07:57:52 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Uz08t-0002QK-TW for pgsql-sql@postgresql.org; Tue, 16 Jul 2013 07:57:52 +0000 Received: from sam.nabble.com ([216.139.236.26]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Uz08r-0003ON-5A for pgsql-sql@postgresql.org; Tue, 16 Jul 2013 07:57:50 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1Uz08q-0001cy-Er for pgsql-sql@postgresql.org; Tue, 16 Jul 2013 00:57:48 -0700 Date: Tue, 16 Jul 2013 00:57:48 -0700 (PDT) From: ssylla To: pgsql-sql@postgresql.org Message-ID: <1373961468438-5763904.post@n5.nabble.com> In-Reply-To: <317.1373952273@sss.pgh.pa.us> References: <51E4B5A5.4040805@gmx.de> <317.1373952273@sss.pgh.pa.us> Subject: Re: update column based on postgis query on anther table MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: 1.9 (+) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-sql Precedence: bulk Sender: pgsql-sql-owner@postgresql.org Hi Tom, I tried changing the trigger to be BEFORE instead of AFTER: create trigger test1_point_get_id_test1_poly before insert or update on test1_point for each row execute procedure test1_point_get_id_test1_poly(); But the problem persits, the column id_test1_poly remains empty. Stefan -- View this message in context: http://postgresql.1045698.n5.nabble.com/update-column-based-on-postgis-query-on-anther-table-tp5763886p5763904.html Sent from the PostgreSQL - sql mailing list archive at Nabble.com. -- Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-sql