agora inbox for pgsql-admin@postgresql.org  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: M Sarwar <sarwarmd02@outlook.com>
Cc: pgsql-admin@lists.postgresql.org <pgsql-admin@lists.postgresql.org>
Subject: Re: Truncate DUMMY_mid is blocked DELETE DUMMY_init TABLE
Date: Wed, 05 Jun 2024 17:39:45 -0400
Message-ID: <914349.1717623585@sss.pgh.pa.us> (raw)
In-Reply-To: <DM4PR19MB59783696112303CE33432F22D3F92@DM4PR19MB5978.namprd19.prod.outlook.com>
References: <DM4PR19MB59783696112303CE33432F22D3F92@DM4PR19MB5978.namprd19.prod.outlook.com>

M Sarwar <sarwarmd02@outlook.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





view thread (4+ messages)  latest in thread

Message-ID: <914349.1717623585@sss.pgh.pa.us>
Permalink:  ../914349.1717623585@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/914349.1717623585@sss.pgh.pa.us

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, sarwarmd02@outlook.com, pgsql-admin@lists.postgresql.org
  Subject: Re: Truncate DUMMY_mid is blocked DELETE DUMMY_init TABLE
  In-Reply-To: <914349.1717623585@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox