Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 66DFA1337B5A for ; Thu, 11 Nov 2010 11:26:09 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 57589-05 for ; Thu, 11 Nov 2010 15:26:09 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by mail.postgresql.org (Postfix) with ESMTP id C37081337B4A for ; Thu, 11 Nov 2010 11:26:08 -0400 (AST) Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by wwwmaster.postgresql.org (8.14.3/8.14.3) with ESMTP id oABFQ8Zq098841 for ; Thu, 11 Nov 2010 15:26:08 GMT (envelope-from www@wwwmaster.postgresql.org) Received: (from www@localhost) by wwwmaster.postgresql.org (8.14.3/8.14.3/Submit) id oABFQ8ku098840; Thu, 11 Nov 2010 15:26:08 GMT (envelope-from www) Date: Thu, 11 Nov 2010 15:26:08 GMT Message-Id: <201011111526.oABFQ8ku098840@wwwmaster.postgresql.org> To: pgsql-bugs@postgresql.org Subject: BUG #5749: Case sensivity of names of sequences. From: "Denis" Content-Type: text/plain; charset=utf-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 201011/82 X-Sequence-Number: 28662 The following bug has been logged online: Bug reference: 5749 Logged by: Denis Email address: DolgalevDenis@mail.ru PostgreSQL version: 9.0.1 Operating system: Windows XP Description: Case sensivity of names of sequences. Details: Hello. I found some problem with sequences names. I am new in Postgresql, so sorry if this problem was already discussed. I wanted to make a simple table with ID column, that value must be taken from the sequence (automatically incremented by 1 in every next record). 1. In GUI I created the sequence with name “NameSeq” (uppercase “N” and “S”). 2. Then I was trying to create a table using this simple querry: CREATE TABLE "Names" ( "NameId" bigint NOT NULL DEFAULT nextval('NameSeq') primary key, "Name" char(20), "FirstName" char(30), "SecondName" char(30) ) WITH ( OIDS = FALSE ) ; But I get the error: “ERROR: relation "nameseq" does not exist SQL state: 42P01” As you can see, sequence name in error message written in lowercase, but in querry I used “NameSeq”. 3. I created new sequence “nameseq” (“n” and “s” in lowercase) and the querry was completed without errors. Should the sequence names always be in lowercase or it`s a bug?