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 1lRbJS-0001GY-OB for pgsql-sql@arkaria.postgresql.org; Wed, 31 Mar 2021 13:55:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lRbJR-0002NG-Kr for pgsql-sql@arkaria.postgresql.org; Wed, 31 Mar 2021 13:55:13 +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 1lRbJR-0002Kp-Ea for pgsql-sql@lists.postgresql.org; Wed, 31 Mar 2021 13:55:13 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lRbJO-0002Yl-LP for pgsql-sql@lists.postgresql.org; Wed, 31 Mar 2021 13:55:13 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 12VDt4WN3167889; Wed, 31 Mar 2021 09:55:04 -0400 From: Tom Lane To: Sebastien FLAESCH cc: pgsql-sql@lists.postgresql.org Subject: Re: Serial sequence name when table/column name in uppercase In-reply-to: <87d8f930-a87c-2d08-f362-d59655ca6c24@4js.com> References: <87d8f930-a87c-2d08-f362-d59655ca6c24@4js.com> Comments: In-reply-to Sebastien FLAESCH message dated "Wed, 31 Mar 2021 12:13:30 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3167887.1617198904.1@sss.pgh.pa.us> Date: Wed, 31 Mar 2021 09:55:04 -0400 Message-ID: <3167888.1617198904@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Sebastien FLAESCH writes: > Ok thanks a lot I got it now, must specify double-quotes around table name. You could use quote_ident() if you don't want to be bothered with the rules for when to double-quote. Also, if you have the table's OID at hand in the query, oid::regclass::text will produce a properly quoted and schema-qualified name. regards, tom lane