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.96) (envelope-from ) id 1wD56f-002aGY-3B for pgsql-hackers@arkaria.postgresql.org; Wed, 15 Apr 2026 18:36:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wD56d-001RUw-0U for pgsql-hackers@arkaria.postgresql.org; Wed, 15 Apr 2026 18:36:55 +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.96) (envelope-from ) id 1wD56c-001RUo-2o for pgsql-hackers@lists.postgresql.org; Wed, 15 Apr 2026 18:36:54 +0000 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wD56a-00000001Bsz-2sOt for pgsql-hackers@lists.postgresql.org; Wed, 15 Apr 2026 18:36:54 +0000 Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-488b00ed86fso72944375e9.3 for ; Wed, 15 Apr 2026 11:36:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1776278211; x=1776883011; darn=lists.postgresql.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=vOGsrrwPrwCi86T0+Q6KLeueRAr3x6upQgmXyS2wlJM=; b=g89sCdEiyz2k4O36ILDKwn1aOvR9oV0ElPqtx43zst8WOULpBu2YsDBTKhP9qS1dBJ gxMWGocB7aZR/56Z3gI4JPKFxlC+Ml0Sx48iie8PYYP7N4ytobEATLZx/ifj3/toI7tP dCZ/7UqxTfOGKuYzXxtEd07HuyVvSOrP5gZ9HdSqO7D30MuRwnk+q1lrr/WvsQV9Fw5n zmhxgXIhAhFg9rwivP0786hm3piZJrPoFircnRmZuSjbI2TMuZvTAUdVDpI1enDccGbb ufb01jTBENTRbXQUK6l7ut1wpXVhUB9SLlCzUEw6ITxCdNVPqVkKf9c2tvg07dXmfKUp Tylw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776278211; x=1776883011; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vOGsrrwPrwCi86T0+Q6KLeueRAr3x6upQgmXyS2wlJM=; b=PKYMKf4ABaEUHt7ZTa+GjTAE77YtmU0yN5ZNtHWn8Vh3dScBWxyV4YJY4ON3rnIkJN vEbSKf3k3+sqE6WmZp5yO+U47xCrBuNgfO7pTO6WAVOB+O6e3A1nIBJNxBzcuMTlMBuo taUJ9b1LQtQ/5yAcwZQMie1dHAcu3T9tkHhi107pN926ldcyBSL6NyEm6lBsoEcqNcAj ftIGu7SxTsFr/4sO4JItwi+KPq+pWXZW6yG9KxQV2BAIx4yc0hD3fu3yXy+LO0cwpwSD rOJ+QouTioKv3jhYI4ckhXcel0TjldJXQD0J9GSMQvbQR4r2EuNeuDUoOcVk+SAUZGMh XTkA== X-Forwarded-Encrypted: i=1; AFNElJ+BNhS/hugJJJH9rXRAbv10tVmo1V5SGBomUB2cUJn4CB72IVb4eaSUJZkJZDiUgA6npR0IiDirygJpslvJ@lists.postgresql.org X-Gm-Message-State: AOJu0Yx9K8sRZp+oRj2we/ulov/C8B+/gtUwTxEvIZwSf4iqjzNKLO2M XSMwH9Qa1xtjKWXlKTtcO+j3g5NF1rTR6B4RcIuphBWqPo1d6marY8y1 X-Gm-Gg: AeBDieuYowfvlB+4epwH5SfvotjQHlFCVj+pfNUi0ybvNm0ZzBjdmaKTTVLXc91dAci 9ZOUNAT359aZmsNaxtGLaKq1vmClirCZYUZFGnaiq5CFEWzlmTB3YOohAQH3BuRi/GfUoSMuOly juY6JAHo2RMIePWHC5g/DmtKHWgh0CyhXHHyC6xZRUAfFXr+bXoSc33iqqKg9ALipPJo6hleIdZ 6aRAuTn8/1AgBrCki+DqmVdh3N5GCg42vahHQhI9xWv3ZjYztD985ngPxZ/ZUQ/jvftw+Yq4PJ/ 7lTBumfVoxahtGTeUfJroaRi6+vteYxK7OOeOzlLVxIqa6YD/5wDY6CCWrWR6HMVczZOpkblWKo S89B2Mhodz21uCHe9CdVih1OkVZeKH+Mv6TDlxxV1B2glE/IB0or/NgM9PE/F36KN3wboC4DBrL KBIuNdFAkwB3EDzY3mnZCiEk+hO5JFagmZFq60Acfka6CpxFEg5c/su7ZKZlajK+b+DiPQo3EV5 DSfxsMcfsI= X-Received: by 2002:a05:600c:4443:b0:488:8577:d9cc with SMTP id 5b1f17b1804b1-488d686be7bmr303619595e9.20.1776278211344; Wed, 15 Apr 2026 11:36:51 -0700 (PDT) Received: from bdtpg (ec2-15-237-197-144.eu-west-3.compute.amazonaws.com. [15.237.197.144]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-488f1e87fcasm66448325e9.9.2026.04.15.11.36.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Apr 2026 11:36:50 -0700 (PDT) Date: Wed, 15 Apr 2026 18:36:49 +0000 From: Bertrand Drouvot To: Roman Eskin Cc: Robert Haas , Jeff Davis , Michael Paquier , Alexander Lakhin , pgsql-hackers@lists.postgresql.org, Tom Lane Subject: Re: Avoid orphaned objects dependencies, take 3 Message-ID: References: <298d95b5570b91a7d0ee42895e79890feefc67d6.camel@j-davis.com> <9f5f0dd4-96d5-4d90-9436-62d96e0298f9@arenadata.io> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9f5f0dd4-96d5-4d90-9436-62d96e0298f9@arenadata.io> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On Sun, Nov 09, 2025 at 06:33:39PM +1000, Roman Eskin wrote: > Hi everybody, > > Apologies for jumping into this conversation. No problem at all, you're more than welcome to join it! > Our customers have also encountered a similar issue with the > concurrent drop of a dependent object. Yeah, it's not something so rare that one could thought (we also see a non negligible of them in our fleet). > In our code (in the Greengage > DB), we implemented a fix analogous to one of the first versions of > Bertrand's approach, using locking within the pg_depend code. > > In the long term, however, we are interested in aligning with the > upstream Postgres code as much as possible. > > Since there haven't been any recent updates in this thread, we were > wondering if there are any plans for the next steps regarding this > issue. Apologies for this late reply. I plan to work on this again in the coming weeks. The next step I've in mind is to build the list of the P1 cases described above. Once we've that list I think we could start discussing the next steps. Regards, -- Bertrand Drouvot PostgreSQL Contributors Team RDS Open Source Databases Amazon Web Services: https://aws.amazon.com