Re: does update of column with no relation imply a relation check of other column?

From: Greg Jaskiewicz <gryzman(at)gmail(dot)com>
To: Anibal David Acosta <aa(at)devshock(dot)com>
Cc: <pgsql-performance(at)postgresql(dot)org>
Subject: Re: does update of column with no relation imply a relation check of other column?
Date: 2011-10-19 16:42:59
Message-ID: C713AEF7-7E18-4B0C-8420-213C1B278F94@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message kzsolt 2011-10-19 18:55:35 Re: Heavy contgnous load
Previous Message Anibal David Acosta 2011-10-19 15:51:08 does update of column with no relation imply a relation check of other column?