pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
\g filename
4+ messages / 2 participants
[nested] [flat]

* \g filename
@ 2018-01-24 20:25 Rob Sargent <robjsargent@gmail.com>
  0 siblings, 0 replies; 4+ messages in thread

From: Rob Sargent @ 2018-01-24 20:25 UTC (permalink / raw)
  To: pgsql-general





^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* \g filename
@ 2018-01-24 20:30 Rob Sargent <robjsargent@gmail.com>
  2018-01-24 20:38 ` Re: \g filename Adrian Klaver <adrian.klaver@aklaver.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Rob Sargent @ 2018-01-24 20:30 UTC (permalink / raw)
  To: pgsql-general

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?

ps sorry for the blank version of this same topic - or maybe zero content is rejected, hopefully.





^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: \g filename
  2018-01-24 20:30 \g filename Rob Sargent <robjsargent@gmail.com>
@ 2018-01-24 20:38 ` Adrian Klaver <adrian.klaver@aklaver.com>
  2018-01-24 20:42   ` Re: \g filename Rob Sargent <robjsargent@gmail.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Adrian Klaver @ 2018-01-24 20:38 UTC (permalink / raw)
  To: Rob Sargent <robjsargent@gmail.com>; pgsql-general

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




^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: \g filename
  2018-01-24 20:30 \g filename Rob Sargent <robjsargent@gmail.com>
  2018-01-24 20:38 ` Re: \g filename Adrian Klaver <adrian.klaver@aklaver.com>
@ 2018-01-24 20:42   ` Rob Sargent <robjsargent@gmail.com>
  0 siblings, 0 replies; 4+ messages in thread

From: Rob Sargent @ 2018-01-24 20:42 UTC (permalink / raw)
  To: Adrian Klaver <adrian.klaver@aklaver.com>; pgsql-general


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 :)





^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2018-01-24 20:42 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-01-24 20:25 \g filename Rob Sargent <robjsargent@gmail.com>
2018-01-24 20:30 \g filename Rob Sargent <robjsargent@gmail.com>
2018-01-24 20:38 ` Adrian Klaver <adrian.klaver@aklaver.com>
2018-01-24 20:42   ` Rob Sargent <robjsargent@gmail.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox