Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t0jzY-00CxTH-4j for pgsql-admin@arkaria.postgresql.org; Tue, 15 Oct 2024 16:01:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1t0jzV-008ATH-Gh for pgsql-admin@arkaria.postgresql.org; Tue, 15 Oct 2024 16:01:45 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t0jzV-008AT7-1R for pgsql-admin@lists.postgresql.org; Tue, 15 Oct 2024 16:01:45 +0000 Received: from mail-sn1nam02olkn2082a.outbound.protection.outlook.com ([2a01:111:f400:7ea9::82a] helo=NAM02-SN1-obe.outbound.protection.outlook.com) by makus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t0jzS-0011py-72 for pgsql-admin@lists.postgresql.org; Tue, 15 Oct 2024 16:01:44 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=S4l+MwFYCa6W1Jk3L5/IvNwlNkIhuAE0bzXIBM24ehwmhxWjqkQXo6PEe+vi0yDs3T8nkB5cP4pqT/qmi4Il/XaAC5lN2ZRYsKbVcI/kcDQGS3ZTO0h6iNTRd0pw8VHyTxVfA3b9Wfq5VroD9/Hox7o6l/x8DWYnJlOgiVVw+pmQsBA5UvGrtSrE2CLGIYNeizY3jXQ0AnHqqfZwuvi1x8+IMC7XmArWhdbsVEgbvDq/lQEy5Xb5B6CVBNCAGF4oMhIOmeyr/KPD0Os8P+OvGlD/vn4gcdaCTrbIePYUNbOsfRWGYydtTZZ3IKqt1My3IjTuYh0kxzlfPyVwsJCLow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=xhtdq3QQf8ogtVLN76/FF+8amx6GrLbQZYITM8gS8FM=; b=FjRK7Se+uQ0l6Gt3pmD15zcW1TTw+j2P1eNxmQRFULwJG8OC6oiomhvAy40Uvsx1zXBOY8c4frll+eMBRecpbkqb030Zu/7Zb0lhDYyVyzukjbN1i2mo9qp05x6AFqj2W6dLxIqaITHJKHflIrwnlVDG8jJ2Aa3pXK5SNQUzFhQ4TrAMg2P4+MoJ9ik1pZuMlD82FpSYOR7LZ7Ouo7WUyroF59Za2khCNz57v7LINrHgnESel5IzK9+dB7TaKaJ6Yn2P9iisv9ZyxUSJG1x5lm/P+PoZVOxvliJy4CLGZzLEMw2hca8rgm2VXgZjSQ9TsLu9Are5UPuAX7R+zSLJHw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xhtdq3QQf8ogtVLN76/FF+8amx6GrLbQZYITM8gS8FM=; b=jKf8/HL8gTcG5OE1nwzwOlkApaptYrOUGjPwWnEQOzIvQbuljUKqnfJgjimgY5u1Slzn5SdLAKM/kN6jagW7oKNiIhfgmMdWMYoo78viKBBIu9FyoLwIFZ4vRAC/Sx0BbEEC3F/cXnbH+Mvq4RJNJd9WNEG57wOf2RjJj9ArnGaVuXELNw34q1LC23Q3sYpyAkCXd23dqp/pt+wY7RyP4B39iIn6UkGQ4MMR//VKzCg7JD/VXqff+jIVWoDo2x3LCl2qciJ/d0CwxpLDtfSDU4MLjlCmCSDJ/39rfHMAN440DUtdpZ4/BNjkCmEuHASwlPeViOO0KBUfWPyyxqshkg== Received: from MN0PR20MB4912.namprd20.prod.outlook.com (2603:10b6:208:3c0::13) by DS0PR20MB5029.namprd20.prod.outlook.com (2603:10b6:8:c3::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.15; Tue, 15 Oct 2024 16:01:39 +0000 Received: from MN0PR20MB4912.namprd20.prod.outlook.com ([fe80::2b55:f111:9de9:3cd9]) by MN0PR20MB4912.namprd20.prod.outlook.com ([fe80::2b55:f111:9de9:3cd9%4]) with mapi id 15.20.8069.009; Tue, 15 Oct 2024 16:01:39 +0000 From: vignesh kumar To: Laurenz Albe , Sabyasachi Mukherjee , "pgsql-admin@lists.postgresql.org" Subject: Re: Loading data from one table to another Thread-Topic: Loading data from one table to another Thread-Index: AQHbHTd44EbVmBQV6kGso1S6rljeY7KFzEQAgAIwMFg= Date: Tue, 15 Oct 2024 16:01:38 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-reactions: allow x-ms-exchange-messagesentrepresentingtype: 1 x-ms-publictraffictype: Email x-ms-traffictypediagnostic: MN0PR20MB4912:EE_|DS0PR20MB5029:EE_ x-ms-office365-filtering-correlation-id: ad8edab3-397b-44e5-2db6-08dced32a744 x-microsoft-antispam: BCL:0;ARA:14566002|19110799003|461199028|12050799009|8062599003|8060799006|7092599003|14030799003|15080799006|9400799024|102099032|10035399004|3412199025|4302099013|440099028|1602099012; x-microsoft-antispam-message-info: =?us-ascii?Q?4t1k1Hvih2B9Y/PwiaXKTalgfiytj+Jaqj+/MehP0LPr0wtdZMy+QApLoPQL?= =?us-ascii?Q?uN85vuGIkleoeoMWZOMu/ZkRgWWETBMgdQKJgfJ/dzDa2oipLK2g9VYSL9fr?= =?us-ascii?Q?ne1NBYIk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ange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?0oI9Om1ZQXegQlK/c7IbI+nHqY3KgieI2VbReJ8mCKGO5zFiAHlemJcV2WnW?= =?us-ascii?Q?vPBFtxQteFGswot5kNKRPD+Sh42J4iK84vmy9p5rqOag1zekDwzo1EvD0ybQ?= =?us-ascii?Q?fbLCiw/2SAizf0V5q9btDNSLF/oUw2OSYei+DLFfrwNPLKyvrtwm6JW49vtH?= =?us-ascii?Q?0iop5nKM48q58Eg1kQJ0I47OCoH1Bewd32Hn+A74itHfucJlFy7TFrtdohCg?= =?us-ascii?Q?lWA9EeuZMh4RUbqXiRGqpivKulk1Me+p3v8MSZLFB3TR2YGXVwtkSEKWfRQ2?= =?us-ascii?Q?BrrDkPvL3i1cqLq1E5u+lNmH/CEuXFTtzIHqyr4p3q1xzTG4QpZWxw54e2Ev?= =?us-ascii?Q?ztdpPp5XO+3BmYX/wF/I7r8VT7U1jlRAMw6XiIL1bUDE3LqyxR01KorF2Q1h?= =?us-ascii?Q?Q8seNa26wBIim9haGm5zGvnI5nDiqcLD85hxICACYYz265/4D5idFX/NC6u/?= =?us-ascii?Q?GXmVEyLQuGaHa0Py1sXdIHIWfbD0m48l3WznHv1dl3o618I0Ja7RVAZ4Lwp4?= =?us-ascii?Q?3QAFzdjbivS/6KaAkVTpY4LkXUilMOcZANQNrYs84bAJYnZutZGK8YJeorEQ?= =?us-ascii?Q?2tJUeStDn0DxQnVNVi6Avm8GNSflBSicFhmVLm5wus5lDmqoJrBT8UpACgch?= =?us-ascii?Q?CyadVtNkOfTJxibIheXYnZaevuUxDpT0aBQ3R4o3iMS8BA9/0oh2Nudw65yg?= =?us-ascii?Q?4T6lN3Jv923CBwvIFIFIkPNpXl4yHwXlOJBfjfKEVgteL/HhARtMP2XV3T2I?= =?us-ascii?Q?6iV6FSPy2F/pWSQYMbEIZjn5HP5O5k5GUVZappEe9PG1g1He/T2B5tyRE099?= =?us-ascii?Q?RFoIqxQUl5+8LqKl87LqYxwgsCdol6t44w4xunaRq3rdlCoT6CwXoT/SwTfQ?= =?us-ascii?Q?Bnn4AVsQrXaBo6WlcNb/NwE8XbyTb5mzSHe6odC8qgA0IYskuBiB7bAWzT+m?= =?us-ascii?Q?BK3DA/XgkLgJs383umvjlo/kDwMT9W3h8wNLII9VSNJuKnTiEEIvdjXbwB4E?= =?us-ascii?Q?C56drBConDQIJQaQETT55nVzExeP8ASLS7xP6p9GWI5HZxEhbF9S50mtnUXk?= =?us-ascii?Q?sKsBSX2drkBvJdhj1HwcT8x44NwZOx+/luN/sR7umZG6yj3ZYiEOYB+cpsM0?= =?us-ascii?Q?WEC30I9Xe+ozR9/pxW+byxyBipfJJLctKc4VBhgHe9XC+DHnLRLrhPbrPesS?= =?us-ascii?Q?nxKuRs/2eFmoawsjigZ6kGg3SYUU7rhoqhuIsD/jUj5sQ9qRjwKj0PQ5u1Cj?= =?us-ascii?Q?T6PuPUCQDsrNL01ZJEfCqOGI54ZxmPfFN1tsfc127+sJhWo/fZdFLDTyOIAW?= =?us-ascii?Q?zY4=3D?= Content-Type: multipart/alternative; boundary="_000_MN0PR20MB49128874B7C246293B856A3B87452MN0PR20MB4912namp_" MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MN0PR20MB4912.namprd20.prod.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: ad8edab3-397b-44e5-2db6-08dced32a744 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Oct 2024 16:01:38.9940 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR20MB5029 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --_000_MN0PR20MB49128874B7C246293B856A3B87452MN0PR20MB4912namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Check if you have foreign table references and they should hold on delete c= ascade that should resolve data being dupliated Sent from Outlook for Android ________________________________ From: Laurenz Albe Sent: Monday, October 14, 2024 12:06:08 PM To: Sabyasachi Mukherjee ; pgsql-admin@li= sts.postgresql.org Subject: Re: Loading data from one table to another On Sun, 2024-10-13 at 06:24 +0000, Sabyasachi Mukherjee wrote: > To copy the data - the command that I am trying to execute is (Insert int= o ...(Select * from )) using PGAdmin > > The command fails every time. > > ERROR: Failed on request of size 1048576 in memory context "AfterTrigger= Events".out of memory > ERROR: out of memory > SQL state: 53200 > Detail: Failed on request of size 1048576 in memory context "AfterTrigger= Events". You have a row level AFTER INSERT trigger on the destination table. Try without the trigger. Yours, Laurenz Albe --_000_MN0PR20MB49128874B7C246293B856A3B87452MN0PR20MB4912namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Check if you have foreign table references and they shoul= d hold on delete cascade that should resolve data being dupliated


From: Laurenz Albe <laur= enz.albe@cybertec.at>
Sent: Monday, October 14, 2024 12:06:08 PM
To: Sabyasachi Mukherjee <mukherjee.sabyasachi@outlook.com>; p= gsql-admin@lists.postgresql.org <pgsql-admin@lists.postgresql.org> Subject: Re: Loading data from one table to another
 
On Sun, 2024-10-13 at 06:24 +0000, Sabyasachi Mukh= erjee wrote:
> To copy the data - the command that I am trying to execute is (Insert = into ...(Select * from )) using PGAdmin
>
> The command fails every time.
>
> ERROR:  Failed on request of size 1048576 in memory context "= ;AfterTriggerEvents".out of memory
> ERROR:  out of memory
> SQL state: 53200
> Detail: Failed on request of size 1048576 in memory context "Afte= rTriggerEvents".

You have a row level AFTER INSERT trigger on the destination table.
Try without the trigger.

Yours,
Laurenz Albe


--_000_MN0PR20MB49128874B7C246293B856A3B87452MN0PR20MB4912namp_--