updates not causing changes

From: Torsten Förtsch <torsten(dot)foertsch(at)gmx(dot)net>
To: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: updates not causing changes
Date: 2014-06-12 17:22:57
Message-ID: 5399E1F1.7090005@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

our developers use a ORM tool which generates updates that write all
columns of a table. In most cases, however, very few columns actually
change. So, those updates mostly write the same value that already is
there in the column.

Now, if there is an index on such columns, does Postgres recognize the
situation and skip the index update? Similarly, does it skip the FK or
UNIQUE check?

Thanks,
Torsten

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Keith Fiske 2014-06-12 17:59:57 Re: [GENERAL] Question about partial functional indexes and the query planner
Previous Message Bosco Rama 2014-06-12 17:20:37 Re: HOT standby with ONLY WAL shipping?