Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eeRsB-00012z-W6 for pgsql-general@arkaria.postgresql.org; Wed, 24 Jan 2018 20:42:20 +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 1eeRsB-00046x-42 for pgsql-general@arkaria.postgresql.org; Wed, 24 Jan 2018 20:42:19 +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 1eeRsA-00046n-P8 for pgsql-general@lists.postgresql.org; Wed, 24 Jan 2018 20:42:18 +0000 Received: from mail-pf0-x233.google.com ([2607:f8b0:400e:c00::233]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eeRs7-0000lo-IX for pgsql-general@postgresql.org; Wed, 24 Jan 2018 20:42:17 +0000 Received: by mail-pf0-x233.google.com with SMTP id b25so4030658pfd.9 for ; Wed, 24 Jan 2018 12:42:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=awLlhaW0+g9wz+v1fhnECV0HkJ2CusYeZjjh8PF+4+E=; b=f+PkGjqbsAhlxrKnV4B2KGanwbSYVRVGGtgc9XTSjNlZmzb2pU021WPkrDSVvg7Fjw 6wCO8UaDYFYqPYerGnpM8zR+B3wP86RHTxXSPkr98aOIF/KaDhNLR85pltKUx1xqBoX/ ePFx/KKmzIyJNvbXm5fns+5lzFv36rfoa1vsLqvI918+/ecLq+W09dOPvNALszkmEfQJ 0cb7lV//NpZNJBmAIDVokZGSiv0De0oMQRECzUuRi77fXg2pbNaF5JufMK0MFe2hMZ9z co3t/DQnWofaAIQM1GHs/2n4cAT55ZwBHtbVOn75vWWQ4h/J+d9Tn5aQODkd3z5pa5C5 n15Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=awLlhaW0+g9wz+v1fhnECV0HkJ2CusYeZjjh8PF+4+E=; b=dvgv3YMijqBvjpSbaab0jgpV9wMvZr36aGk88agnaeMYIELlW4G4oIYRDl/1r3H9wF XwAuPFohVLB7FrM4aUR5AkoWNMYL4jqvXtvwXQSI1VBMEYsUXXY3H38HlwTZNgLebOOB cxlcoXkoj2ykIyjqeYvDSSTPMOVPaqvQw1Ce3MYSyfeGzFX25sJsZ0HupVsvHmearOZt DBv1Ua0qFnxHEJfXH2PBZZQyMlSB1IvWBxFDBl+NXgCeoG7oJYTXPhEAZ0HAJaj1xGRz u1y8HBwYbqZggM2KvouXt2XgQXEAEL/oikiXnBkPd9I4HeAiJ+6C5B7E1UeMrg4UWdc0 W72w== X-Gm-Message-State: AKwxytdpontUjH2qSGB6F+M+Sr5++Ede78KxNDNxZuhkqUYGwruhmwY0 dxtrZvjD8jOHwrHCUbtj7ylJzFul X-Google-Smtp-Source: AH8x226n0CFaMrIdNwWZ1VdegyvnxycvtfG9SxbuRxzLl2oxH7CKFykWs0F9WnklF8Emvzs3FplxOQ== X-Received: by 10.99.125.74 with SMTP id m10mr11928491pgn.354.1516826532527; Wed, 24 Jan 2018 12:42:12 -0800 (PST) Received: from [10.104.134.14] ([155.100.47.6]) by smtp.gmail.com with ESMTPSA id r88sm12870037pfb.17.2018.01.24.12.42.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Jan 2018 12:42:12 -0800 (PST) Subject: Re: \g filename To: Adrian Klaver , "pgsql-general@postgresql.org" References: From: Rob Sargent Message-ID: <748c4316-b336-dac0-d18a-7274c613de6f@gmail.com> Date: Wed, 24 Jan 2018 13:42:11 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 01/24/2018 01:38 PM, Adrian Klaver wrote: > 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 Ah yes, place the onus squarely on the user :)