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 1lRWKA-0001rG-VU for pgsql-sql@arkaria.postgresql.org; Wed, 31 Mar 2021 08:35:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lRWK9-0003Ht-Qh for pgsql-sql@arkaria.postgresql.org; Wed, 31 Mar 2021 08:35:37 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lRWK9-0003Hm-KQ for pgsql-sql@lists.postgresql.org; Wed, 31 Mar 2021 08:35:37 +0000 Received: from mail150.strasbourg.4js.com ([77.159.205.150]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lRWK6-00051g-5o for pgsql-sql@lists.postgresql.org; Wed, 31 Mar 2021 08:35:36 +0000 Received: from [192.168.1.34] (lfbn-str-1-71-12.w92-140.abo.wanadoo.fr [92.140.198.12]) (authenticated bits=0) by mail150.strasbourg.4js.com (8.14.4/8.14.4/Debian-4+deb7u1) with ESMTP id 12V8ZTKc010186 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT) for ; Wed, 31 Mar 2021 10:35:31 +0200 To: "pgsql-sql@lists.postgresql.org" From: Sebastien FLAESCH Subject: Serial sequence name when table/column name in uppercase Organization: Four Js Development Tools Message-ID: Date: Wed, 31 Mar 2021 10:35:29 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.99.4 at mail150 X-Virus-Status: Clean X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.6.2 (mail150.strasbourg.4js.com [10.10.0.1]); Wed, 31 Mar 2021 10:35:31 +0200 (CEST) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello, How do I get the sequence name for a serial/bigserial column, of a table and/or column name is created with uppercase letters? test1=> create table "TAB13" ( "PKEY" BIGSERIAL, "NAME" VARCHAR(50) ); CREATE TABLE test1=> select pg_get_serial_sequence(current_schema||'.tab13','pkey'); ERROR: relation "public.tab13" does not exist test1=> select pg_get_serial_sequence(current_schema||'.TAB13','PKEY'); ERROR: relation "public.tab13" does not exist test1=> select * from "TAB13"; PKEY | NAME ------+------ (0 rows) Seb