Re: Loading data from one table to another - Mailing list pgsql-admin

From vignesh kumar
Subject Re: Loading data from one table to another
Date
Msg-id MN0PR20MB49128874B7C246293B856A3B87452@MN0PR20MB4912.namprd20.prod.outlook.com
Whole thread Raw
In response to Re: Loading data from one table to another  (Laurenz Albe <laurenz.albe@cybertec.at>)
List pgsql-admin
Check if you have foreign table references and they should hold on delete cascade that should resolve data being dupliated


From: Laurenz Albe <laurenz.albe@cybertec.at>
Sent: Monday, October 14, 2024 12:06:08 PM
To: Sabyasachi Mukherjee <mukherjee.sabyasachi@outlook.com>; pgsql-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 Mukherjee 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 "AfterTriggerEvents".

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

Yours,
Laurenz Albe


pgsql-admin by date:

Previous
From: vignesh kumar
Date:
Subject: Re: create foreign table
Next
From: vignesh kumar
Date:
Subject: Re: iso-8859-1 temp directories and library files