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 1elhSA-000615-UI for pgsql-general@arkaria.postgresql.org; Tue, 13 Feb 2018 20:45:27 +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 1elhS9-0002m7-Lu for pgsql-general@arkaria.postgresql.org; Tue, 13 Feb 2018 20:45:25 +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_2) (envelope-from ) id 1elhOP-0002ID-By for pgsql-general@lists.postgresql.org; Tue, 13 Feb 2018 20:41:33 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1elhOL-0006XJ-Hg for pgsql-general@postgresql.org; Tue, 13 Feb 2018 20:41:32 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id C80E920C76; Tue, 13 Feb 2018 15:41:27 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute6.internal (MEProxy); Tue, 13 Feb 2018 15:41:27 -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=gPq/LObPd19EFnyD1AcJc/c6Zo7hQ /kuUJDlLXQhm/E=; b=Vsali/A3HkQV7Cpg3P5hgqAPMU3172eGsL1r23Mi9KkLz QIczFBRcqB6UbMh9YFWBcBun6mrVytlDeVFW8XAkyhGvrQfUWd3goIuvl0Ny7Waj ZEohdOhHa8JEkc48zKtOpos5k988gYC7QmBYao0bPluJIwdLkVsHLzriug8cls0R JL4akAzZAS/iezn3nDNqLdHwL+qBmYs/bpHyXjuljYdNo1tkVV831Xuwx8Ra4dtY mYtfZh7AWu16vxFRlVb3d9OS/AmJgNaSiJ2usluc3+96ceUIOFsdRKp1a13zP5K8 vN8Ijpa9q0mPHrpmcfl4FVfOl1mR0aCbCRivyG1FA== 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=gPq/LO bPd19EFnyD1AcJc/c6Zo7hQ/kuUJDlLXQhm/E=; b=MDNADTmFaWFk7fLEb4jMhX K9EdRPonCxebkFS4+7NHTg6QooyZcIAA3zG0S8IJTDTPPKsiKgohXFdYOLzzrIIV kCmebXwFBlJNg4XMGSap6DF5nZx70j/gh50dD81ZdFDoT9M+OQgsWK282u//GtzB 8wYfe8HlBEz26/SPXOHPl7wSLZ3kfsDdM0uhsIA1tzcSCjAuNi0voKzejqo5/Ar7 hTSkz2/sTYmqdu098ylFpodAHye2S26rez2drR5gd/c4hgpM9Pd8gVqE2MJeWRSi 3Rf6+TnF7cO9lGO0uFHGWQzSu1Eug7077QPsgzbxVu106IujhdWwgOsfE0jbVBLw == 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 43DA8246A5; Tue, 13 Feb 2018 15:41:27 -0500 (EST) Subject: Re: How do I get rid of database test-aria To: Sherman Willden , pgsql-general@postgresql.org References: From: Adrian Klaver Message-ID: <73ea9951-43a0-4a71-effe-4cc57d240cb4@aklaver.com> Date: Tue, 13 Feb 2018 12:41:26 -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 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