pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: eric.cyr@gmail.com
Subject: BUG #15449: file_fdw using program cause exit code error when using LIMIT
Date: Mon, 22 Oct 2018 14:00:50 +0000
Message-ID: <15449-1cf737dd5929450e@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      15449
Logged by:          Eric Cyr
Email address:      eric.cyr@gmail.com
PostgreSQL version: 10.5
Operating system:   Ubuntu 16.04.2 LTS (Xenial Xerus)
Description:        

CREATE FOREIGN TABLE test_file_fdw_program_limit
    (
      message text
    )
    SERVER pg_log_fdw OPTIONS (program 'echo "test"', format 'csv')
;

--

SELECT * FROM test_file_fdw_program_limit;
/*
OK
*/

SELECT * FROM test_file_fdw_program_limit LIMIT 2;
/*
OK
*/

SELECT * FROM test_file_fdw_program_limit LIMIT 0;
/*
[38000] ERROR: program "echo "test"" failed Detail: child process exited
with exit code 1
*/

--

LIMIT 0 is the easiest way we found to reproduce the error, but we
encountered same issue with LIMIT (< file lines) on a program doing an if
exists + file output stream manipulation.



view thread (28+ messages)  latest in thread

Message-ID: <15449-1cf737dd5929450e@postgresql.org>
Permalink:  ../15449-1cf737dd5929450e@postgresql.org/
Also on:    postgresql.org/message-id/15449-1cf737dd5929450e@postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, eric.cyr@gmail.com
  Subject: Re: BUG #15449: file_fdw using program cause exit code error when using LIMIT
  In-Reply-To: <15449-1cf737dd5929450e@postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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