Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hbRjF-0006Ca-Mi for pgsql-general@arkaria.postgresql.org; Thu, 13 Jun 2019 15:33:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hbRjD-0000E0-7N for pgsql-general@arkaria.postgresql.org; Thu, 13 Jun 2019 15:33:27 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hbRjB-0008Vs-B9 for pgsql-general@lists.postgresql.org; Thu, 13 Jun 2019 15:33:26 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hbRj8-0003Cg-3t for pgsql-general@lists.postgresql.org; Thu, 13 Jun 2019 15:33:24 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id C3FFC21EAE; Thu, 13 Jun 2019 11:33:20 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Thu, 13 Jun 2019 11:33:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=j yCPYHk23nW9+0InDujBnXwHq+13tFuf81Nb1wJN6cM=; b=gVhMSJ+n9FlIBIigW /KmDv7r32nLueLT3S+Ppu/Jc+08bsxPVBrRGVEPJy6X43gyBXsOr0jDwqMgSTnwz lauGug3la9lkjxAWexZRlKVTBs+9CQU9S8TA76mhveGwfM9A7+H4avIFQEusICdJ M6p2/2GcJpQ4UR6ko2WNQe9AL/X0oMAzgxc2aJ6qwXz6ZHlqGXRploBh/bftZe8D VzuBLQdpOvD6hxy9YsfL46+2c5oIV0x1IGnrRkAaVQ7NMTr8z//ipHZAHeB/LLXo 2KkFFbuJkyn7R86bdPIuMsEveD1+nMMlpWS/MVHVoaeREAo4UNzluJs+IUIrgSQu mzA4A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=jyCPYHk23nW9+0InDujBnXwHq+13tFuf81Nb1wJN6 cM=; b=KDhvCbagHZYE9TFPYK/QUl2d6pBJt6LbhN9+1wfc+5VrhtzSePu8kdZWC Et8XpViAMlcvDq09K6oTdAEABwOWvzMtl9oM+Tkfyb9nIk7yCKyd4Xlzr28yuWCk BeJS50nLTlYrtE7v9jAgK5RdFvJ6tvaFPeUDQvJ2vwzurXZ52BFCsABlXU7PVDKF jd/rcdf71g4jQdCBdbx1YSwI0OHy5DiyC1Jbjse7cwEhDENEMgLGmcGIbfbwqjlv OgdmefAfU/QlVx8OSRG2vRhn2xv4sLcCRHbX29bqVWvKKCeU7h85v1NzHN3XJvhn lqrIET8KkPniSExCBoUbo2Ivp6XbA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrudehledgledtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtke ertddtfeejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhk lhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecukfhppeejgedrleefrddutdehrdduke einecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhl rghvvghrrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from ranger.suse (74-93-105-186-washington.hfc.comcastbusiness.net [74.93.105.186]) by mail.messagingengine.com (Postfix) with ESMTPA id CA46C380083; Thu, 13 Jun 2019 11:33:19 -0400 (EDT) Subject: Re: bug regclass::oid To: John Mikel , pgsql-general@lists.postgresql.org References: From: Adrian Klaver Message-ID: Date: Thu, 13 Jun 2019 08:33:18 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 6/13/19 8:14 AM, John Mikel wrote: > * hi , >  i am here to tell you that this  test in query is not working when the >  table name in the database or schema name   contain space >  a.table_name::regclass=b.attrelid > >  a is information_schema.columns >  b is pg_attribute > >  trying this in two different databases the first database contain table >  with space in his name (Problem when running query) >  the second no ( work fine) > >  the same problme if you get Oid from schema name. >  SELECT 'public'::regnamespace::oid;  work ; >  create schema " this is test" ; >  SELECT 'this is test'::regnamespace::oid;  not working ; Try: SELECT '"this is test"'::regnamespace::oid; not working ; Same for table name. As example: select '"space table"'::regclass; regclass --------------- "space table" (1 row) > >  i have question how use join between  information_schema.columns and >  pg_attribute ? thanks > > regards* -- Adrian Klaver adrian.klaver@aklaver.com