Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hiHCV-0002uh-8w for pgsql-general@arkaria.postgresql.org; Tue, 02 Jul 2019 11:43:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hiHCT-0006nf-Fp for pgsql-general@arkaria.postgresql.org; Tue, 02 Jul 2019 11:43:53 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hiHCT-0006kg-2j for pgsql-general@lists.postgresql.org; Tue, 02 Jul 2019 11:43:53 +0000 Received: from tmgnod.techmahindra.com ([202.41.204.79]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hiHCJ-0001ZD-MI for pgsql-general@lists.postgresql.org; Tue, 02 Jul 2019 11:43:50 +0000 X-Disclaimer: true IronPort-PHdr: =?us-ascii?q?9a23=3A5ri5HRMxjo7qRng/XKcl6mtUPXoX/o7sNwtQ0KIM?= =?us-ascii?q?zox0K/37pcbcNUDSrc9gkEXOFd2Cra4d0ayM4+u8BCRAuc/H7ClbNsQUFlcsso?= =?us-ascii?q?Y/p0QYGsmLCEn2frbBThcRO4B8bmJj5GyxKkNPGczzNBX4q3y26iMOSF2kbVIm?= =?us-ascii?q?buv6FZTPgMupyuu854PcYxlShDq6fLh+MAi6oR/eu8ULn4duMLg9xxjGrnZHe+?= =?us-ascii?q?ld2GdkKU6Okxrm6cq84YNv/z5Mt/498sJLTLn3cbk/QbFEFjotLno75NfstRnN?= =?us-ascii?q?TAuP4mUTX2ALmRdWAAbL8Q/3UI7pviT1quRy1i+aPdbrTb8vQjSt871rSB7zhy?= =?us-ascii?q?gZMTMy7XzahdZxjKJfpxKhugB/zovJa4ybKPZyYqXQds4cSGFcXMheSjZBD5u8?= =?us-ascii?q?YYUREuQBIehWoYrzp1QMrBuxGQaiC+z0xz9Un3/6wbE23/g9HQ3Y2gErAtIAsG?= =?us-ascii?q?7TrNXwLKocVPq6zLPMzT7eaP1Zwy396JTJchAnvPqCQLFwcc3VyUYyCQzKlU+Q?= =?us-ascii?q?ppbjPzyIy+8AtG2V4fd8We+xiWMqqR99rzmhy8o3lIfGmJ4aylDD+ypjwIY1JN?= =?us-ascii?q?u4R1NhYdG+CpdfqyaaN45vT84kXmpmuz46x6UbtZKnZiQHyY4rywPeZvCdbYSF?= =?us-ascii?q?5grvWPuNLTtihX9pYqyzihmx/ES6yuDxWdG40FhUoSdGjtXBs3UA2h7Q58iJRP?= =?us-ascii?q?Zw+0Ss1DST2AzO7+xLPUI5mKvaJpMkzL4/jZgevEvFEyTrgkv5lrWWeV8h+uWw?= =?us-ascii?q?7uTnZajpqYGEOo9vjwH+LrwumsuiAeQkKgQOX3aU+eC71LD780L3RbpEgfwon6?= =?us-ascii?q?fbt57XOMUUqrKlDwJbyIot9QiwACum0Nofh3YHLFNFeBSagIjzIV7COuz3DfC6?= =?us-ascii?q?g1i0kTdrwe7JPqH5D5nQMnTPirbscaxg50Nd0gY/09RS64pRCr4bIfLzXkHxtM?= =?us-ascii?q?bfDh88KwG6xvvpBMlj244cW2+DHK6UPa3JvF+U+O0gP+mMZIoPtzb9Kvgl4ePh?= =?us-ascii?q?jWUjllMHYaap2p4XZGiiHvt6O0WZfWbsgtAZHGcJpAU+VvfqiEGcXj5VfXqyX6?= =?us-ascii?q?M85jUgB424F4fDWpuggLOE3Ca0BJFWYH5JCkyUG3fya4qEQ+sMaD6VIsJ5ijwE?= =?us-ascii?q?WqOhS5Yl1R23uw/11bxnIfTO+iICsZLuz9x15+zIlREu7jx4Fdyd02aWT2FokW?= =?us-ascii?q?MIXSE53LtmoUx50FuD1rJ4g/MLXeBUsrlKWx0hKZPaiex7D9r/QB7pcdKZDlCr?= =?us-ascii?q?Xp/uVTI4VMktztlIY0d5Edi4kjjM2jrsBbIJwfjDToQ76bvYmnf8IctnwnLu0K?= =?us-ascii?q?g6k0JgWsxUKWK8i7Vm807UHYGD2xGBmL2zceET0SjA7m6H5W6Pp11DFhZ3SrnK?= =?us-ascii?q?R30Ef0+Qqs72sBDsVbirXJcuKA8J7MeYNqpMIubqilFKSf35MdLSKzaSoD+bWk?= =?us-ascii?q?nSmOikUIfhe0AU3CTbBFIN1QsU+CDVZkAFGi69rjeGX3RVHlX1bha0/A=3D=3D?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2GqAAA4Qhtd/x0QBgplGgEBAQEBAgEBA?= =?us-ascii?q?QEHAgEBAQGBZ4Q3l1cBAQaBNpAQil0GAwEBAQEBAQEBAQgvAQGEQAKCPDgTAQM?= =?us-ascii?q?BAQUBAQEBBQEBAossgjoigm8BAQEDATpECwIBCA0pEDIlAQEEARqFEQWjUgGCc?= =?us-ascii?q?BqIXYFHNX+BY4sLgQeEIz6KJgSBLQEBAYphh3CWMwEGAgGCGIs+iDcjjT8Diiq?= =?us-ascii?q?NMJdTgWdmgRQzPYFugU+RBI5IgSEBAQ?= X-IPAS-Result: =?us-ascii?q?A2GqAAA4Qhtd/x0QBgplGgEBAQEBAgEBAQEHAgEBAQGBZ4Q?= =?us-ascii?q?3l1cBAQaBNpAQil0GAwEBAQEBAQEBAQgvAQGEQAKCPDgTAQMBAQUBAQEBBQEBA?= =?us-ascii?q?ossgjoigm8BAQEDATpECwIBCA0pEDIlAQEEARqFEQWjUgGCcBqIXYFHNX+BY4s?= =?us-ascii?q?LgQeEIz6KJgSBLQEBAYphh3CWMwEGAgGCGIs+iDcjjT8DiiqNMJdTgWdmgRQzP?= =?us-ascii?q?YFugU+RBI5IgSEBAQ?= X-IronPort-AV: E=Sophos;i="5.62,443,1554748200"; d="scan'208";a="106063366" Received: from unknown (HELO UKEXCHMBX003.TechMahindra.com) ([10.6.16.29]) by TMGNOD.techmahindra.com with ESMTP/TLS/AES256-SHA256; 02 Jul 2019 17:13:00 +0530 Received: from UKEXCHMBX003.TechMahindra.com (10.6.16.29) by UKEXCHMBX003.TechMahindra.com (10.6.16.29) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 2 Jul 2019 12:42:58 +0100 Received: from UKEXCHMBX003.TechMahindra.com ([fe80::78f3:87c1:c766:fb74]) by UKEXCHMBX003.TechMahindra.com ([fe80::78f3:87c1:c766:fb74%20]) with mapi id 15.00.1395.000; Tue, 2 Jul 2019 12:42:58 +0100 From: Karl Martin Skoldebrand To: "karsten.hilbert@gmx.net" , "pgsql-general@lists.postgresql.org" Subject: RE: Sequences part 2 Thread-Topic: Sequences part 2 Thread-Index: AdUwwfLOGPLKIoMcT2KEK8UN7zFQuv//9oiA///qzCCAABu/AP//7HBg Date: Tue, 2 Jul 2019 11:42:57 +0000 Message-ID: References: <4f61207408b84e9f8e6f36f1476f928d@UKEXCHMBX003.TechMahindra.com> <20190702112536.GB4305@hermes.hilbert.loc> In-Reply-To: <20190702112536.GB4305@hermes.hilbert.loc> Accept-Language: sv-SE, en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.6.248.54] Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > 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 ju= st 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 r= ules between app and database enforcing whatever questionable assumptions t= he 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 in= to several) for this function. If things are in fact the way they look to u= s at the moment. Either way it's not a quick fix for someone fairly inexper= ienced with PostgreSQL and having a couple of days to holiday. //Martin S =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Disclaimer: This message and the information contained herein is proprieta= ry and confidential and subject to the Tech Mahindra policy statement, you = may review the policy at http://www.techmahindra.com/Disclaimer.html externally http://tim.techmahindra.= com/tim/disclaimer.html i= nternally within TechMahindra. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D