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 1kGLVc-00046p-4U for pgsql-general@arkaria.postgresql.org; Thu, 10 Sep 2020 12:17:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kGLVZ-00081w-Fl for pgsql-general@arkaria.postgresql.org; Thu, 10 Sep 2020 12:16:57 +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 1kGLVZ-00081p-85 for pgsql-general@lists.postgresql.org; Thu, 10 Sep 2020 12:16:57 +0000 Received: from smtp.burggraben.net ([2a01:4f8:140:510a::3]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kGLVX-0002hd-5Q for pgsql-general@lists.postgresql.org; Thu, 10 Sep 2020 12:16:56 +0000 Received: from elch.exwg.net (elch.exwg.net [IPv6:2001:470:7120:1:127b:44ff:fe4f:148d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "elch.exwg.net", Issuer "Christoph Moench-Tegeder" (not verified)) by smtp.burggraben.net (Postfix) with ESMTPS id D3485C0031B; Thu, 10 Sep 2020 14:16:52 +0200 (CEST) Received: by elch.exwg.net (Postfix, from userid 1000) id 74AB2139889; Thu, 10 Sep 2020 14:16:52 +0200 (CEST) Date: Thu, 10 Sep 2020 14:16:52 +0200 From: Christoph Moench-Tegeder To: Mike Martin Cc: pgsql-general@lists.postgresql.org Subject: Re: Return value of CREATE TABLE Message-ID: <20200910121652.GA25488@elch.exwg.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.14.7 (2020-08-29) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ## Mike Martin (redtux1@gmail.com): > So basically I would like to be able to know what namespace a temp table is > created in, so that I can constrain lookup. pg_my_temp_schema() returns the OID of the session's temporary schema ("or 0 if none", according to the docs). Regards, Christoph -- Spare Space