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 1hiGHU-0000lV-1l for pgsql-general@arkaria.postgresql.org; Tue, 02 Jul 2019 10:45:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hiGHQ-0004vZ-Vs for pgsql-general@arkaria.postgresql.org; Tue, 02 Jul 2019 10:44:56 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hiGHQ-0004sI-Lx for pgsql-general@lists.postgresql.org; Tue, 02 Jul 2019 10:44:56 +0000 Received: from tmgnod.techmahindra.com ([202.41.204.79]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hiGHJ-0002qr-Oz for pgsql-general@lists.postgresql.org; Tue, 02 Jul 2019 10:44:53 +0000 X-Disclaimer: true IronPort-PHdr: =?us-ascii?q?9a23=3AEApimx+zdfUAe/9uRHKM819IXTAuvvDOBiVQ1KB2?= =?us-ascii?q?2+scTK2v8tzYMVDF4r011RmVBN+dsaIP0LGe8/i5HzBZuNDZ6DFKWacPfidNsd?= =?us-ascii?q?8RkQ0kDZzNImzAB9muURYHGt9fXkRu5XCxPBsdMs//Y1rPvi/6tmZKSV3wOgVv?= =?us-ascii?q?O+v6BJPZgdip2OCu4Z3TZBhDiCagbb9oIxi6sBvdutMIjYZhJao8xBXEqWZMd+?= =?us-ascii?q?hK2G9kP12ekwvh6suq4JJv7yFcsO89+sBdVqn3Y742RqFCAjQ8NGA16szrtR3d?= =?us-ascii?q?QgaK+3ARTGYYnAdWDgbc9B31UYv/vSX8tupmxSmVJtb2QqwuWTSj9KhkVhnlgz?= =?us-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geEsZcsaBnSAA/YL3V1egyLtnoRgPHNuyKT1Kq?= =?us-ascii?q?T9+8CDc9BoYS+IclPBknRY6Ksh3I3w+jA74Tm6aCQpcz9/SPjDDKO89hxiOeh+?= =?us-ascii?q?EahF48T54XOA=3D=3D?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2HYAgBhNBtd/xQQBgpmHAEBAQQBAQcEA?= =?us-ascii?q?QGBZ4EVgWyBNpdYAQEGnCMJAQEBAQEBAQEBCC8BAYZ+OBMBAwEBBQEBAQEFAQE?= =?us-ascii?q?CiyELgjoigyNeAQwJayYBBBuDG4EdWaZhGohfgUeBNIFjiwuBB48HBIEtAQEBk?= =?us-ascii?q?i6WVgEGAgGCGAOTciONPwOKKo0wgRuUVgKBYIFngXozPYFugU+RBI5IgSEBAQ?= X-IPAS-Result: =?us-ascii?q?A2HYAgBhNBtd/xQQBgpmHAEBAQQBAQcEAQGBZ4EVgWyBNpd?= =?us-ascii?q?YAQEGnCMJAQEBAQEBAQEBCC8BAYZ+OBMBAwEBBQEBAQEFAQECiyELgjoigyNeA?= =?us-ascii?q?QwJayYBBBuDG4EdWaZhGohfgUeBNIFjiwuBB48HBIEtAQEBki6WVgEGAgGCGAO?= =?us-ascii?q?TciONPwOKKo0wgRuUVgKBYIFngXozPYFugU+RBI5IgSEBAQ?= X-IronPort-AV: E=Sophos;i="5.62,443,1554748200"; d="scan'208,217";a="106043760" Received: from unknown (HELO UKEXCHMBX001.TechMahindra.com) ([10.6.16.20]) by TMGNOD.techmahindra.com with ESMTP/TLS/AES256-SHA256; 02 Jul 2019 16:14:41 +0530 Received: from UKEXCHMBX003.TechMahindra.com (10.6.16.29) by UKEXCHMBX001.TechMahindra.com (10.6.16.20) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 2 Jul 2019 11:44:39 +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 11:44:39 +0100 From: Karl Martin Skoldebrand To: "pgsql-general@lists.postgresql.org" Subject: Sequences part 2 Thread-Topic: Sequences part 2 Thread-Index: AdUwwfLOGPLKIoMcT2KEK8UN7zFQug== Date: Tue, 2 Jul 2019 10:44:38 +0000 Message-ID: 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: multipart/alternative; boundary="_000_c5ee3f2d96c4410b88ac9d4492fe1773UKEXCHMBX003TechMahindr_" MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --_000_c5ee3f2d96c4410b88ac9d4492fe1773UKEXCHMBX003TechMahindr_ Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi again, Looking more at sequences, I have some sequences that start with ID 1, incr= ementing each record by 1. So I have e.g. 1 Spain 2. Germany 3. France 4. Ireland 5. Norway Now I want to insert more countries, between France and Ireland. And also a= lter the increment. That latter part might be easy as I understood it? But = can I achieve this: 1 Spain 2. Germany 3. France 4. Greece 5. Latvia 6. Cyprus 7. Ireland 8. No= rway That is inserting records in the middle of the records, maybe even 1 Spain 2. Germany 3. France 4. Greece 5. Ireland 6. Norway 14. Latvia 24. = Cyprus //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 --_000_c5ee3f2d96c4410b88ac9d4492fe1773UKEXCHMBX003TechMahindr_ Content-Type: text/html; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable

Hi again,

 

Looking more at sequences, I ha= ve some sequences that start with ID 1, incrementing each record by 1.=

So I have e.g. 1 Spain 2. Germa= ny 3. France 4. Ireland 5. Norway

Now I want to insert more count= ries, between France and Ireland. And also alter the increment. That latter= part might be easy as I understood it? But can I achieve this:<= /span>

1 Spain 2. Germany 3. France 4.= Greece 5. Latvia 6. Cyprus 7. Ireland 8. Norway

That is inserting records in th= e middle of the records, maybe even

1 Spain 2. Germany 3. France 4.= Greece 5. Ireland 6. Norway 14. Latvia 24. Cyprus

 

//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 proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at= http://www.techmah= indra.com/Disclaimer.html externally http= ://tim.techmahindra.com/tim/disclaimer.html internally 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

--_000_c5ee3f2d96c4410b88ac9d4492fe1773UKEXCHMBX003TechMahindr_--