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.94.2) (envelope-from ) id 1tC2Sm-009bck-GP for pgsql-general@arkaria.postgresql.org; Fri, 15 Nov 2024 19:58:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tC2Rl-00Bd8J-Ld for pgsql-general@arkaria.postgresql.org; Fri, 15 Nov 2024 19:57:38 +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.94.2) (envelope-from ) id 1tC2Rl-00Bd7w-AN for pgsql-general@lists.postgresql.org; Fri, 15 Nov 2024 19:57:37 +0000 Received: from mail-oi1-x22c.google.com ([2607:f8b0:4864:20::22c]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1tC2Rf-0024jM-BF for pgsql-general@postgresql.org; Fri, 15 Nov 2024 19:57:36 +0000 Received: by mail-oi1-x22c.google.com with SMTP id 5614622812f47-3e60e57a322so1227667b6e.3 for ; Fri, 15 Nov 2024 11:57:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731700650; x=1732305450; darn=postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=uoY/45d6fTQYeyTyYljPqQg1tt1Bsa8SxiMRoyyWdLE=; b=DUtIKQajp1yF7MssovMcGg2xGVFn8/wyuMoHuXcR/vnUC9pGvYiXpWv0EyR3zukAOj AzFwzK4A7+2mwSFLDzelcGHk4yEwCeYm0gREjYfb+nbw67o3stJuHb5zBtzvyX/W6evs 1K/FmE/qM65sc7AqERYK7bjniqgreikOIs/IxswcFY3ZzJXBeBLsUid7YEKr9jhCedHq KKDLyYKO+/M6JC1e/x7ZRFA4uyFXsPrAxnhNKjepnMxA9hzvD70i5RR2/tOW7rjMjCbL Wq7M0mEmL7VUobSESoUeI5sWgjPAXj9wns7g4HD/vRVW2wJmnagdl+KxmBiGgnwvsW5B z97g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731700650; x=1732305450; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=uoY/45d6fTQYeyTyYljPqQg1tt1Bsa8SxiMRoyyWdLE=; b=oEAamte2hC5ZJzXC7VJ8jtGBqY6gNdX6nKipu7brb16yE6kay8bwEf8+kCw25BbaIi G9GxEbNKVJ78JcqvHvYnwRKNA8vRZBDNu6IQR0+GMejTA71cEZT4fsL0ISkVVf8jML7Z K407kCgimla2NGy3orKiTYYgL6deXUKfpKkeYMMP0sA3oCZ5mXwoYNhy8Xp+3qvqQ0BU hB3BJ+UC9LFv11hUPRUem4868f0s2OrqNaF0u7Sjfx6fBBZIOzSSMOpkMxzaqhS4Ewak Elg6QLq4nLEu+NLkOwuTYDTBDU9+s40Nq8I3A+SYTDv1n52u+UY6uS5hWNWZUjKd2ivH sKZw== X-Gm-Message-State: AOJu0YxKN4/cLHsiaRqDtvObK0wlfk4a2wUy5xlQaU5YSSW3hGpXH6AP PwZW/u8CvsVmG1bxrewkMl7rsT+NdvdyRHTwGKNiVEiYcJ/wH+o1W3aaGTDg74/rzTf5Yuv7LBu mvGNIfiT/Yt+1eboLQ1HGcG4U9f0= X-Google-Smtp-Source: AGHT+IF7uthFiXPPQu3DHXUMjbjWyXbYfv1gzQx5yv+sYnOauKnAEIlnn1PCYPj00BiU2D6fbG4IT0MRvAOIrh9hB4k= X-Received: by 2002:a05:6808:188d:b0:3e7:b699:915c with SMTP id 5614622812f47-3e7bc7db88emr3656507b6e.24.1731700650396; Fri, 15 Nov 2024 11:57:30 -0800 (PST) MIME-Version: 1.0 References: <0558ddd4d71641bdb41fa49b2425f73c@safrangroup.com> <98965993.3138805.1731699978332@mail.yahoo.com> In-Reply-To: <98965993.3138805.1731699978332@mail.yahoo.com> From: "David G. Johnston" Date: Fri, 15 Nov 2024 12:56:54 -0700 Message-ID: Subject: Re: Need exact SQL query to find List of Detach Partitioned Tables (Yet to be Dropped) To: Bharani SV-forum Cc: "pgsql-general@postgresql.org" Content-Type: multipart/alternative; boundary="0000000000001fd5c60626f8facc" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000001fd5c60626f8facc Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Nov 15, 2024 at 12:46=E2=80=AFPM Bharani SV-forum wrote: > Need exact SQL query to find List of Detach Partitioned Tables (Yet to be > Dropped) > > The premise that a detached table is distinguishable from any other table that is not a partition is an interesting one that I wouldn't necessarily expect to be determinable. You could probably write a query listing tables that are candidates for attaching to an existing partitioned table and then filter out those that are actually attached. David J. --0000000000001fd5c60626f8facc Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable --0000000000001fd5c60626f8facc--