Re: [GENERAL] Fwd: [webmaster] Update query issue - Mailing list pgsql-general

From John R Pierce
Subject Re: [GENERAL] Fwd: [webmaster] Update query issue
Date
Msg-id ce718a7b-7d03-513d-20bf-2b42cc6f33ef@hogranch.com
Whole thread Raw
In response to Re: [GENERAL] Fwd: [webmaster] Update query issue  (Adrian Klaver <adrian.klaver@aklaver.com>)
List pgsql-general
On 1/17/2017 1:04 PM, Adrian Klaver wrote:
On Jan 17, 2017, at 5:33 AM, kumar s <leelaseshukumar@gmail.com
<mailto:leelaseshukumar@gmail.com>> wrote:

Hi team thanks for giving option....
I am getting update problem ...after update row thst row appended end
of the table ...i need update row without change row position if any
possible please rply .

In Postgres UPDATE is actually DELETE old row, INSERT new row so the row position will change.

Why is the new row being in a new position a problem?

to add to this, relations (tables) are considered unordered sets, if you want a specific order, use ORDER BY in your query.


-- 
john r pierce, recycling bits in santa cruz

pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: [GENERAL] Fwd: [webmaster] Update query issue
Next
From: Tomas Vondra
Date:
Subject: Re: [GENERAL] Queries are taking way longer in 9.6 than 9.5