Re: Truncate DUMMY_mid is blocked DELETE DUMMY_init TABLE

From: M Sarwar <sarwarmd02(at)outlook(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "pgsql-admin(at)lists(dot)postgresql(dot)org" <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: Truncate DUMMY_mid is blocked DELETE DUMMY_init TABLE
Date: 2024-06-05 22:21:56
Message-ID: DM4PR19MB597884761C6FEC10F3DDF53ED3F92@DM4PR19MB5978.namprd19.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi Tom,
I checked both the tables, DUMMY_MID as well as DUMMY_INIT and they do not have relationship at all.
These 2 tables number of columns and the column names are the same. The data is copied from one another. That should not matter as long as there is no foreign key relationship to each others.
Thanks,
Sarwar

________________________________
From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Sent: Wednesday, June 5, 2024 5:39 PM
To: M Sarwar <sarwarmd02(at)outlook(dot)com>
Cc: pgsql-admin(at)lists(dot)postgresql(dot)org <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: Truncate DUMMY_mid is blocked DELETE DUMMY_init TABLE

M Sarwar <sarwarmd02(at)outlook(dot)com> writes:
> I am truncating the table DUMMY_mid .
> Truncate is getting struck due to DELETE operation on the table DUMMY_init.

Maybe you have foreign keys connecting those tables?

regards, tom lane

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Laurenz Albe 2024-06-06 07:58:09 Re: Truncate DUMMY_mid is blocked DELETE DUMMY_init TABLE
Previous Message Tom Lane 2024-06-05 21:39:45 Re: Truncate DUMMY_mid is blocked DELETE DUMMY_init TABLE