Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eljhr-0004Fu-2S for pgsql-general@arkaria.postgresql.org; Tue, 13 Feb 2018 23:09:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eljhq-0001oj-6O for pgsql-general@arkaria.postgresql.org; Tue, 13 Feb 2018 23:09:46 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eljhp-0001oZ-S0 for pgsql-general@lists.postgresql.org; Tue, 13 Feb 2018 23:09:46 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eljhm-0008Lt-K2 for pgsql-general@postgresql.org; Tue, 13 Feb 2018 23:09:44 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 0436020E9E; Tue, 13 Feb 2018 18:09:42 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute6.internal (MEProxy); Tue, 13 Feb 2018 18:09:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=L2bEGwQ5bqO68sKRxQSyJxGZ6qS6e hIdy6qS2iPVGX4=; b=o7HiVxTidsR6pZoNzwgW+QS03hA0WnbsM/1v1ySjK7cwW MjDUlrFSMY3b3FeTeI4NXotqpocPuVvs9mxSoBsDbiAJb0RkbGVHmzJibGku7kzH 6qWozBQCrTfqo0nbOQLipdC0TEYj/cMK/oOgrsi8CNoWkBXMglPiX2KCpq5mH2z+ 6GjJlUvF0I7laVVC7hX1QGYleZhqwZaHRM2VNhCKHtYzmPCMXsxo7v+3Zt1rFjMG johQPV7x1dpm9zdt4RpwKIYlQnPEzWnK3S164XNsH/b2sh7Q27tUXdyHibbPRyTp uBTPfQewQN4uBaWJVKRZrSMR36InY4mitiy7tW5bw== 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-sender:x-me-sender:x-sasl-enc; s=fm2; bh=L2bEGw Q5bqO68sKRxQSyJxGZ6qS6ehIdy6qS2iPVGX4=; b=L/CCdM6+ambg5nB9vxr4Le aUyduHOLuMGqZZdLeA+ZyzPt+zfT2UTIPFUTkwxD2awClvrmSjFDdKwbzBumvuev E4CdYguuvvWwODyZOD4T9Vjy0CD3i/BnY1/2JurDowaC9dP5BIErVQOPPHE7z3Jb 6/N2q6T1JJuevicWT/OtPx9ZCs+8bE7SMjikUM+HBsFEJKt+W/+1KrUpYrLPks6C KvQfhWdxAX2xISiQNpUChmqc1PITEHvuboCzB9SIHezgaQplHRX/OtQlwhk7HKDe 1k8q1uW1otyWg6N7IUUk9OxljsUkeSsH4kjAndEniya0uNiNXMwRaSjjhQbkXwww == X-ME-Sender: Received: from [192.168.1.3] (71-212-36-41.tukw.qwest.net [71.212.36.41]) by mail.messagingengine.com (Postfix) with ESMTPA id 5CB8924550; Tue, 13 Feb 2018 18:09:41 -0500 (EST) Subject: Re: How do I get rid of database test-aria To: Sherman Willden , clavadetscher@swisspug.org, pgsql-general@postgresql.org References: <73ea9951-43a0-4a71-effe-4cc57d240cb4@aklaver.com> From: Adrian Klaver Message-ID: <322fdc19-ffd5-3890-6f85-60e90bc36836@aklaver.com> Date: Tue, 13 Feb 2018 15:09:40 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 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 02/13/2018 03:08 PM, Sherman Willden wrote: > Yes the double quotes worked. I tried single quotes but since that > didn't work I just assumed that double quotes would not work either. The below explains why: https://www.postgresql.org/docs/10/static/sql-syntax-lexical.html#SQL-SYNTAX-IDENTIFIERS > > Thanks all; > > Sherman > > On Tue, Feb 13, 2018 at 1:41 PM, Adrian Klaver > > wrote: > > On 02/13/2018 12:38 PM, Sherman Willden wrote: > > development platform: HP Compaq 6710b > postgresql 9.6 > Operating System: Ubuntu 17.10 > > It probably doesn't matter since there is nothing in the > database. I don't remember  how I created the database. It > appears that postgresql does not like a dash in the database > name. I have not tried to create a table under the database. > When I try to drop the database I get the following.. > > date_time=# DROP DATABASE test-aria; > ERROR:  syntax error at or near "-" > LINE 1: DROP DATABASE test-aria; > > > DROP DATABASE "test-aria"; > > See below for more info: > > https://www.postgresql.org/docs/10/static/sql-syntax-lexical.html#SQL-SYNTAX-IDENTIFIERS > > > > Thanks; > > Sherman > > > > -- > Adrian Klaver > adrian.klaver@aklaver.com > > -- Adrian Klaver adrian.klaver@aklaver.com