Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eeRox-0000qf-NI for pgsql-general@arkaria.postgresql.org; Wed, 24 Jan 2018 20:39:00 +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 1eeRox-000808-A2 for pgsql-general@arkaria.postgresql.org; Wed, 24 Jan 2018 20:38:59 +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 1eeRow-0007zv-Pp for pgsql-general@lists.postgresql.org; Wed, 24 Jan 2018 20:38:59 +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 1eeRou-0000fB-6A for pgsql-general@postgresql.org; Wed, 24 Jan 2018 20:38:58 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id C4E6C22412; Wed, 24 Jan 2018 15:38:54 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute6.internal (MEProxy); Wed, 24 Jan 2018 15:38:54 -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=B8pL3esAZsl4U2FnA/Cw//gvXsUJN sRTIALvQpG3u/Y=; b=Zd3aoOAdWH8KAoes0kI+jtrQgSibdtoLELlHm7cFdlElo AtrP/1qnTPnxVvhclOp1ipwSMZrYyVTipHBUvx6H4i/In9fQsPQPEifjZG8ZxAOl xQJWgpVzdOO4G6U/kxjbbwwQdOlMYEcg2Q70FaI9H1j7alHgLNqUsQINl2/km3Ic c3WX/tBinCiH1b8WdockXZcIYPnJnoXTlwaw1alUO1Cq7rYNmeWDkO9jT51mr9d4 EpYpxaytnuAeEONu7aVaY7qWgJ3IiFX8eSxEMG3X7TqlV44vFeSkDxR4mEiE2RZE iGGZVMKcWEKcDDnkeZilFZyE0eB6B2jWns+li4feg== 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=fm1; bh=B8pL3e sAZsl4U2FnA/Cw//gvXsUJNsRTIALvQpG3u/Y=; b=Q1phL7u425tvYF5q0/Nc0V WRdKCSoyvb34IpPybpCeKWCxrju3K0WoOJSxxOt96ROdZNuq/RjaCvXJD97JBKl4 eGVF3bA5H0qDHtv8w7hl4YzcGDdF1Yb3Dk7DyXHxmZ7Cew5BRY/wmIUxZqVii7k/ KNhcuu7uukPJ4q9f3qRt8xXF4qWxEmNeHZre+GAlO5Dsx6fVwAT9NOzoM1Cy0258 z9Yqa+lhzZRano3mHn7R+rE4/I8Uaub+TGjN5i3Kxwi78Oio6jk9zX3Fxl6+bZhx MMUVZeHKUDgVyN9CCA31ulUy3cD6EPr58Kph2gT/gmJe35xO51sLO/7Ht5ptvA+A == X-ME-Sender: Received: from ranger.suse (unknown [67.40.177.89]) by mail.messagingengine.com (Postfix) with ESMTPA id 151D72463E; Wed, 24 Jan 2018 15:38:53 -0500 (EST) Subject: Re: \g filename To: Rob Sargent , "pgsql-general@postgresql.org" References: From: Adrian Klaver Message-ID: Date: Wed, 24 Jan 2018 12:38:52 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 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 01/24/2018 12:30 PM, Rob Sargent wrote: > I just ran a query (select myfunction() \g bad/filename) which took almost an hour and a half then told me “no such file or directory” since I had scrogged the path. Could this path not be checked prior to actual execution of the query? Maybe?: test_(aklaver)> \o pg_test/some_file.txt pg_test/some_file.txt: No such file or directory > > ps sorry for the blank version of this same topic - or maybe zero content is rejected, hopefully. > > -- Adrian Klaver adrian.klaver@aklaver.com