Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kZcqg-0003Vm-2B for pgsql-admin@arkaria.postgresql.org; Mon, 02 Nov 2020 16:38:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kZcqf-0001oz-1p for pgsql-admin@arkaria.postgresql.org; Mon, 02 Nov 2020 16:38:25 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kZcqe-0001os-Nj for pgsql-admin@lists.postgresql.org; Mon, 02 Nov 2020 16:38:24 +0000 Received: from mail-qk1-x734.google.com ([2607:f8b0:4864:20::734]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kZcqc-00055p-Li for pgsql-admin@postgresql.org; Mon, 02 Nov 2020 16:38:24 +0000 Received: by mail-qk1-x734.google.com with SMTP id z6so12038614qkz.4 for ; Mon, 02 Nov 2020 08:38:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=+H0QS464LaJuKz9zR7kHpYglOpkLsjJtqdybkZxC1EQ=; b=Sr8/rB/iLErS2nWrwzWWfirWKhFZj0trSWZbG/qm5zJiFtE31L61HHblTjNZynIb1C PwNoMky5KjlaOM/2tuX5M72UDKoyNvDIvwMTG+oirueJAjPVxQiPcUFH/Sg4zYh01ylH 8GiTI9fcdU4DkCWzybxrOhNXRYAW3SUhW7R6IroX191DaQYWqF2pBIHdCp4N8ru1qmId MGRKlF5L6auas3FWgqbiLojKOzavKBx9EmrPnxT43iSxluTJctLO/8HpldgarFTWWeX1 PQTEjTruO2rQIrptvquAuoePGocQauOac2Rmke0nEb82LspAIrL7pTtEHhQNWshTo5ZB D6Rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=+H0QS464LaJuKz9zR7kHpYglOpkLsjJtqdybkZxC1EQ=; b=Pg69dBbi68uL8UhucD9/iwYS0vc+rWo6mzquswcWuis4KvdsTRyFyjj9HvWHMFWUD7 ZyUFxC+0sfpImEy6TOJZ6MZpiJBpq5vHNDjlqhBLDMP+MG+sKRH77TCO44+GdnB2XHNL xhoHCUci2GL6sHGVJBPEU6A4Hg3p/qNCm1NC/UoP/JQ3oVytfsG+sJzevwZUtTYJNueU UQ4Hom5xXsADmdO5VDRxmQwJxdzc/qgHKi+NAyqmL7+3YTo28PIZtOmK3k0nYtjB5maA V//f6jS2T1UQzkZTsFp9zgHha3s7i7T0y1ljQJKr+1OkOGtwjL88czV3Tujstg6StV3a RzzA== X-Gm-Message-State: AOAM532Dd1wV1oEvGOfzsXak6hT0EWejVRAFMwinkCgnelOeZ24ZS3n/ hsWENme0/V08TYlfYwqg9jMTtjcaX2Dalg== X-Google-Smtp-Source: ABdhPJyg9cY9uovKJaYy5rcEMM+0EJt6msjW9NLOTsc8wAlW1Xc+P1jJ+o4kknnhfazs2NcYqMxoKQ== X-Received: by 2002:a37:ec2:: with SMTP id 185mr15515933qko.456.1604335100867; Mon, 02 Nov 2020 08:38:20 -0800 (PST) Received: from [192.168.1.35] (cpe-71-72-37-104.neo.res.rr.com. [71.72.37.104]) by smtp.gmail.com with ESMTPSA id a3sm8266374qtp.63.2020.11.02.08.38.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 02 Nov 2020 08:38:20 -0800 (PST) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: John Scalia Mime-Version: 1.0 (1.0) Subject: Re: Maybe a possible bug in the partitioning code? Date: Mon, 2 Nov 2020 11:38:19 -0500 Message-Id: <5F7F8C76-DA88-46D6-B0B6-DB9C84CE87C1@gmail.com> References: <656221.1604334677@sss.pgh.pa.us> Cc: pgsql-admin In-Reply-To: <656221.1604334677@sss.pgh.pa.us> To: Tom Lane X-Mailer: iPad Mail (18A8395) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Ok I also tried that Tom. Psql returned =E2=80=9CDid not find any relations n= amed =E2=80=9C=E2=80=98.temp_my_table_global=E2=80=9D Sent from my iPad > On Nov 2, 2020, at 11:31 AM, Tom Lane wrote: >=20 > =EF=BB=BFJohn Scalia writes: >> While I=E2=80=99m waiting for my devs to confirm the first table that I p= artitioned is working correctly, I started working on second of three that I= need to do. So, I added the code to end of my original script, but there wa= s a typo in it. Now, as this code runs in a transaction block, so I don=E2=80= =99t think anything it created should actually be present in the database, b= ut on a subsequent rerunning, I got an error that one of the partition table= s actually exists already. However, I cannot see it, nor drop it from the se= rver. The error in the script is: relation =E2=80=9Ctemp_my_second_table_glo= bal=E2=80=9D already exists, but the system cannot see it in order to drop i= t, saying =E2=80=9Ctemp_my_second_table_global=E2=80=9D does not exist. That= =E2=80=99s really a catch-22. Is there a system table where I can look and m= aybe drop it from there directly? >=20 > Kinda sounds like a confusion over search_path, ie script is creating > table in some schema that's not in your interactive search path? >=20 > In psql, try > \d *.temp_my_second_table_global > to see instances of temp_my_second_table_global in all schemas. >=20 > regards, tom lane