Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aa7ez-0003qq-A7 for pgsql-bugs@arkaria.postgresql.org; Sun, 28 Feb 2016 20:09:45 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aa7ey-0008R7-SM for pgsql-bugs@arkaria.postgresql.org; Sun, 28 Feb 2016 20:09:44 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aa7eL-0007hw-Pp for pgsql-bugs@postgresql.org; Sun, 28 Feb 2016 20:09:05 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1aa7eJ-0003Mb-AX for pgsql-bugs@postgresql.org; Sun, 28 Feb 2016 20:09:05 +0000 MIME-Version: 1.0 Subject: BUG #13993: Temp sequence does not seem to be properly deleted To: pgsql-bugs@postgresql.org From: mathias.zajaczkowski@ubik.ch Date: Sun, 28 Feb 2016 20:08:12 +0000 Message-ID: <20160228200812.10543.12731@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.1 (-) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 13993 Logged by: Zajaczkowski Email address: mathias.zajaczkowski@ubik.ch PostgreSQL version: 9.4.4 Operating system: Windows 7 64 bits Description: I use pgAdmin V. 1.20.0 (Jul 13 2015, rev: REL-1_20_0) Within a script I created temporary sequence: CREATE TEMP SEQUENCE 'rateSeq' with S in uppercase to be used for rate table pk. Script run fine. Next time script gave an error "relation rateseq already exists". I modified the creation of the sequence to: CREATE TEMP SEQUENCE rateseq (all in lower case) Same error when running the script. I tried: DROP SEQUENCE rateseq Result: sequence <> does not exist. I completely changed the name of my sequence to "seq4rate" => same error. I hade a look in pg_class table where I found a record with relname = rateseq. I deleted this line. It was not a good idea, but I'm not in production and had this try. Since then trying to run the script I had a message "... with Oid can not be found ..." I restored the database. Problem persisted. I stoped and restarted the service "postgresql-x64-9.4 - PostgreSQL Server 9.4". That solved my problem. Kind regards -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs