pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Kellerer <spam_eater@gmx.net>
To: pgsql-general@lists.postgresql.org
Subject: Re: Use ctid in where clause in update from statement
Date: Mon, 1 Jul 2019 14:08:20 +0200
Message-ID: <19fcc76d-4f44-b6f0-da7c-ce2320785b6f@gmx.net> (raw)
In-Reply-To: <B606DA07-17D2-4203-8BE5-E6C6D5B7084F@mikatiming.de>
References: <C8D480EC-AFF2-40CC-8BD3-754A1204011A@mikatiming.de>
	<73fbdc2d-36cc-a96a-5019-f7c78876ed8d@matrix.gatewaynet.com>
	<428A47B1-DBC5-47D6-B361-C142B2534756@mikatiming.de>
	<1c9e7d1d-ea2e-8f48-7a05-268254a9aad5@gmx.net>
	<B606DA07-17D2-4203-8BE5-E6C6D5B7084F@mikatiming.de>

> As you can see the trigger function is called for the row I try to
> insert, but you can also see that there's no tuple inserted but one
> conflicting.

Ah, right. 

Thinking about it, it _has_ to call any BEFORE trigger function 
as that might change values of the row to be inserted that 
could possibly change the outcome of the test. 









view thread (14+ messages)  latest in thread

Message-ID: <19fcc76d-4f44-b6f0-da7c-ce2320785b6f@gmx.net>
Permalink:  ../19fcc76d-4f44-b6f0-da7c-ce2320785b6f@gmx.net/
Also on:    postgresql.org/message-id/19fcc76d-4f44-b6f0-da7c-ce2320785b6f@gmx.net

 · 

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: spam_eater@gmx.net
  Subject: Re: Use ctid in where clause in update from statement
  In-Reply-To: <19fcc76d-4f44-b6f0-da7c-ce2320785b6f@gmx.net>
  References: <C8D480EC-AFF2-40CC-8BD3-754A1204011A@mikatiming.de> <73fbdc2d-36cc-a96a-5019-f7c78876ed8d@matrix.gatewaynet.com> <428A47B1-DBC5-47D6-B361-C142B2534756@mikatiming.de> <1c9e7d1d-ea2e-8f48-7a05-268254a9aad5@gmx.net> <B606DA07-17D2-4203-8BE5-E6C6D5B7084F@mikatiming.de> <19fcc76d-4f44-b6f0-da7c-ce2320785b6f@gmx.net>

* 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