From: Karl Martin Skoldebrand <KS0C77263@TechMahindra.com>
To: karsten.hilbert@gmx.net <karsten.hilbert@gmx.net>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: RE: Sequences part 2
Date: Tue, 2 Jul 2019 11:42:57 +0000
Message-ID: <c4eea2e934cf43e9ae25faaf71e39f85@UKEXCHMBX003.TechMahindra.com> (raw)
In-Reply-To: <20190702112536.GB4305@hermes.hilbert.loc>
References: <c5ee3f2d96c4410b88ac9d4492fe1773@UKEXCHMBX003.TechMahindra.com>
<bd21060f-c6ce-8c1f-ebe2-e2b594edb60b@gmx.net>
<4f61207408b84e9f8e6f36f1476f928d@UKEXCHMBX003.TechMahindra.com>
<20190702112536.GB4305@hermes.hilbert.loc>
> Yes, I'm fairly aware of this. However the application the database table belongs to seems to rely on a specific order in the database. I.e. if I just add value to the table they end up, possibly due to how the application is coded in an undesireable spot on the web page.
> That is why I wanted them to be inserted with the previous records.
rename the table
install a view with the name of the table and appropriate triggers and/or rules between app and database enforcing whatever questionable assumptions the app thinks it needs -- if at all logically possible
--------------
Hmm, that could be a possible avenue.
The true horror of the database table is that it contains mixed data, so it could possibly be "easier" to just remodel the database table (split it into several) for this function. If things are in fact the way they look to us at the moment. Either way it's not a quick fix for someone fairly inexperienced with PostgreSQL and having a couple of days to holiday.
//Martin S
============================================================================================================================
Disclaimer: This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at http://www.techmahindra.com/Disclaimer.html <http://www.techmahindra.com/Disclaimer.html; externally http://tim.techmahindra.com/tim/disclaimer.html <http://tim.techmahindra.com/tim/disclaimer.html; internally within TechMahindra.
============================================================================================================================
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: KS0C77263@TechMahindra.com, karsten.hilbert@gmx.net
Subject: Re: Sequences part 2
In-Reply-To: <c4eea2e934cf43e9ae25faaf71e39f85@UKEXCHMBX003.TechMahindra.com>
References: <c5ee3f2d96c4410b88ac9d4492fe1773@UKEXCHMBX003.TechMahindra.com> <bd21060f-c6ce-8c1f-ebe2-e2b594edb60b@gmx.net> <4f61207408b84e9f8e6f36f1476f928d@UKEXCHMBX003.TechMahindra.com> <20190702112536.GB4305@hermes.hilbert.loc> <c4eea2e934cf43e9ae25faaf71e39f85@UKEXCHMBX003.TechMahindra.com>
* 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