Re: does update of column with no relation imply a relation check of other column? - Mailing list pgsql-performance

From Greg Jaskiewicz
Subject Re: does update of column with no relation imply a relation check of other column?
Date
Msg-id C713AEF7-7E18-4B0C-8420-213C1B278F94@gmail.com
Whole thread Raw
In response to does update of column with no relation imply a relation check of other column?  ("Anibal David Acosta" <aa@devshock.com>)
Responses Re: does update of column with no relation imply a relation check of other column?  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-performance

On 19 Oct 2011, at 17:51, Anibal David Acosta wrote:

For example:
Table A
-id (PK)
-name
 
Table B
-table_a_id (PK, FK)
-address
 
When I do an insert on table B, the database check if value for column “table_a_id” exists in table A
But, if I do an update of column “address” of table B, does the database check again?
 
My question is due to the nature of and update in postgres, that basically is a new version “insert”.

In short - I believe it does. No reason for it not to. 

pgsql-performance by date:

Previous
From: "Anibal David Acosta"
Date:
Subject: does update of column with no relation imply a relation check of other column?
Next
From: alan
Date:
Subject: delete/recreate indexes