Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aNnix-00013W-TM for pgsql-bugs@arkaria.postgresql.org; Mon, 25 Jan 2016 20:26:56 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aNniw-0000yq-Ub for pgsql-bugs@arkaria.postgresql.org; Mon, 25 Jan 2016 20:26:54 +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 1aNkeT-00076B-1g for pgsql-bugs@postgresql.org; Mon, 25 Jan 2016 17:10:05 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1aNkeQ-0006As-DL for pgsql-bugs@postgresql.org; Mon, 25 Jan 2016 17:10:04 +0000 MIME-Version: 1.0 Subject: BUG #13889: psql doesn't exequte correct script To: pgsql-bugs@postgresql.org From: v_bilyak@mail.ru Date: Mon, 25 Jan 2016 17:09:04 +0000 Message-ID: <20160125170904.2541.87445@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.2 (-) 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: 13889 Logged by: Vladimir Email address: v_bilyak@mail.ru PostgreSQL version: 9.5.0 Operating system: Windows 10 Description: Hello. I faced the following issue: psql.exe does not execute the following script DROP DATABASE "demo_crash"; CREATE DATABASE "demo_crash"; aborting with error: CREATE DATABASE cannot be executed from a function or multi-command string I searched in Google for solution but found only suggestion to rebuild Postgres with some fix in source code that is not acceptable in my case. Do you have another suggestion how to resolve it? Thank you in advance for any help! Sincerely, Vladimir -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs