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 1vKICd-006OVX-0P for pgsql-general@arkaria.postgresql.org; Sat, 15 Nov 2025 15:28:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vKICa-009YHB-1o for pgsql-general@arkaria.postgresql.org; Sat, 15 Nov 2025 15:28:36 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vKICa-009YFb-0J for pgsql-general@lists.postgresql.org; Sat, 15 Nov 2025 15:28:36 +0000 Received: from mail-oa1-x29.google.com ([2001:4860:4864:20::29]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vKICX-007tsf-10 for pgsql-general@lists.postgresql.org; Sat, 15 Nov 2025 15:28:35 +0000 Received: by mail-oa1-x29.google.com with SMTP id 586e51a60fabf-3e2bceca89eso886567fac.0 for ; Sat, 15 Nov 2025 07:28:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763220509; x=1763825309; darn=lists.postgresql.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=gud4rEGC6JpL4nrDyCWxd9pYoIqNgguDHST36RoWPwA=; b=Cz8nLFm2a07jA4tr+F/4bVC+Yz0wLxDy1VPaiMutTe1ROumaPNMA172LhjwUAd+TsV qWGUBo7LtEoPGO2AgsQSHn1WkDdS/oAsZG8euISe1uJh4gMy68at+NvRVbeXfbmMGwDJ 7zIav7qRxSZUh0pXAMWTfoktSodgWtLXfZ80bIXuDZvHTc8uOa+HNd7MyhHCQD4eOYdi rVHJMWXdQtDHq+cYb5DsPS0+3S1KbjnMPn06MeqW1LHdL0McZJ4imQJUu7miOlGq7bQU cUdHH4pvLLX5WP0sfuFFWZr00YeUevlRnB0HexK2CLOaZ+8H4ci2h/MCANqR7ynHm9PY YeMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763220509; x=1763825309; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=gud4rEGC6JpL4nrDyCWxd9pYoIqNgguDHST36RoWPwA=; b=tdse6wgVzYwuuSVS1QwtMpyn5MGT75Knf/hwfUEZE1/hBKnzvhLd6ctJ6eUpL2/ZXC UZU4wBgMR9oX61ZAU1Vk6Def2cehp1by6F+Oo/YGZK7UOXuZPJDh4Cy0dh3VZ/YqmIQv RetBhO/IQRgo3/708Lx9dvh/Ps3VeEU9Ye9ecJS2U4f6IMZvYP3F1v0VyhWlg/IQ4wcV u1OR7s+NjLSKfv3UiNy7qJjPMca0xTeonpb+z2xEZ4cdVGWKMsm07g5bj1n2TDvwfRQ2 Yq6WoP0kvanjLryJ/YYkOwUgeFn130aW51NYqLwxmSgT8IT67/JK8gIiRgjlMNUNvnbI jJgw== X-Gm-Message-State: AOJu0YxZtkzeqU2unqPFaP5pPQPVH8fluVcjkNvhk9M7PaAVwvXpxHG+ W+m6VfQtFwXrTUDKWx4cfSEwji506YSrvpyNu8tB6IDI1ddygCDdGu6IciNIZLC6W8nhmNTGRGY 8PV5BhGrUrgmfiRqC5nAP1l9UZYaRYBjIlw== X-Gm-Gg: ASbGnct55kFNSo5msjtXDsuwT8LYz1dZYQSjAB7c2jr2exVhoApY06qdzUoqhuvu02D hXHChMK2yIzxjaFUj78FA5xqcwq/QAE6Qu53xS0LJH/EdctWsTbu2OY44sSvftWTngLaesNI497 WpCe9ui912lNHExiA4vk/umLjDO7erpEvigX+oR269E+5LUnn1Zf3Qba0X3ILycIN/6h7YqSMRt 3raME6JBmwsmWhwv15NHB4m3p9BmHOL/IXWy4qb7r2mi7Igc7sMWh54GjRRCc48RlmFx4Wa X-Google-Smtp-Source: AGHT+IES6/B3RPDwhKsMkKOscKvIBrd/DuJz1UaCm98QR/fJZnFJd2wwrvZt2JTUpLDLR//aMR4JNdvcqVvlIfA3QIk= X-Received: by 2002:a05:6870:c68c:b0:36d:31f3:9f1c with SMTP id 586e51a60fabf-3e868f1328fmr2865145fac.14.1763220509041; Sat, 15 Nov 2025 07:28:29 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Ron Johnson Date: Sat, 15 Nov 2025 10:28:18 -0500 X-Gm-Features: AWmQ_bklmc_4rfW5edvR-h8uUZuBawXjdh3rp8m7zuAmcDQFBaAuu-Xa8bjuCIY Message-ID: Subject: Re: failure to drop table due to pg_temp_7 schema To: "pgsql-generallists.postgresql.org" Content-Type: multipart/alternative; boundary="0000000000001a283b0643a3c421" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000001a283b0643a3c421 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, Nov 15, 2025 at 10:00=E2=80=AFAM Peter 'PMc' Much < pmc@citylink.dinoex.sub.org> wrote: > > Hi, > trying to unload (and then reload) a development application, > failed with this error: > > fin(dev)> Que.migrate! version: 0 > ERROR: cannot drop table que_jobs because other objects depend on it > (PG::DependentObjectsStillExist) > DETAIL: function pg_temp_7.lock_and_update_priorities(jsonb,que_jobs) > depends on type que_jobs > HINT: Use DROP ... CASCADE to drop the dependent objects too. > > > The routine was trying to remove all database objects in the order > they were formerly created, In the *REVERSE* order they were created? [snip] > I would rather figure out what actually went wrong (and then probably > fix it for the future). > > So I started to investigate. Enabling "System Objects" in pgadmin4, > I find a vast amount of pg_temp_### schemas, and therein I actually > find the offending object - it indeed contains some stuff the Que > software would probably use. > > Then, trying to figure out how this is supposed to be cleaned up, > I find this article by subject matter expert Laurenz Albe: > https://stackoverflow.com/a/79693897 > > Temporary tables are automatically removed when the database > session terminates. Consequently, your users are running long > database sessions. > > Sadly, this does not make much sense to me, because there are > (currently) no sessions on the database (checked with 'ps ax'). > Abnormal session termination is the typical reason for them to hang around. --=20 Death to , and butter sauce. Don't boil me, I'm still alive. lobster! --0000000000001a283b0643a3c421 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sat, Nov 15, 2025 at 10:00=E2=80=AFAM = Peter 'PMc' Much <pmc@citylink.dinoex.sub.org> wrote:
Hi,
=C2=A0 trying to unload (and then reload) a development application,
failed with this error:

fin(dev)> Que.migrate! version: 0
ERROR:=C2=A0 cannot drop table que_jobs because other objects depend on it = (PG::DependentObjectsStillExist)
DETAIL:=C2=A0 function pg_temp_7.lock_and_update_priorities(jsonb,que_jobs)= depends on type que_jobs
HINT:=C2=A0 Use DROP ... CASCADE to drop the dependent objects too.


The routine was trying to remove all database objects in the order
they were formerly created,

In the REVE= RSE=C2=A0order they were created?

[snip]=C2=A0=
=C2=A0
I = would rather figure out what actually went wrong (and then probably
fix it for the future).

So I started to investigate. Enabling "System Objects" in pgadmin= 4,
I find a vast amount of pg_temp_### schemas, and therein I actually
find the offending object - it indeed contains some stuff the Que
software would probably use.

Then, trying to figure out how this is supposed to be cleaned up,
I find this article by subject matter expert Laurenz Albe:
https://stackoverflow.com/a/79693897

=C2=A0 =C2=A0 Temporary tables are automatically removed when the database<= br> =C2=A0 =C2=A0 session terminates. Consequently, your users are running long=
=C2=A0 =C2=A0 database sessions.

Sadly, this does not make much sense to me, because there are
(currently) no sessions on the database (checked with 'ps ax').
=

Abnormal session terminat= ion is the typical reason for them to hang around.

--
Death to <Redacted>, and butter sau= ce.
Don't boil me, I'm still alive.
<Redacted&g= t; lobster!
--0000000000001a283b0643a3c421--