Re: Selecting large tables gets killed

From: Ashutosh Bapat <ashutosh(dot)bapat(at)enterprisedb(dot)com>
To: Bernd Helmle <mailings(at)oopsware(dot)de>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Marti Raudsepp <marti(at)juffo(dot)org>, Pavan Deolasee <pavan(dot)deolasee(at)gmail(dot)com>, amul sul <sul_amul(at)yahoo(dot)co(dot)in>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Selecting large tables gets killed
Date: 2014-02-21 03:23:09
Message-ID: CAFjFpRdV-ZufO_ycqB-QuxGXuSmD74H0=3n_zmgV4sY4mKeNaA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Feb 20, 2014 at 9:00 PM, Bernd Helmle <mailings(at)oopsware(dot)de> wrote:

>
>
> --On 20. Februar 2014 09:51:47 -0500 Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>
> Yeah. The other reason that you can't just transparently change the
>> behavior is error handling: people are used to seeing either all or
>> none of the output of a query. In single-row mode that guarantee
>> fails, since some rows might get output before the server detects
>> an error.
>>
>
> That's true. I'd never envisioned to this transparently either, exactly of
> this reason. However, i find to have single row mode somewhere has some
> attractiveness, be it only to have some code around that shows how to do it
> right. But i fear we might complicate things in psql beyond what we really
> want.
>
>
Yes. Fixing this bug doesn't seem to be worth the code complexity it will
add, esp. when the work around exists.

OR, other option is when sufficiently large output is encountered (larger
than some predefined value MAX_ROWS or something), psql behaves as if
FETCH_COUNT is set to MAX_ROWS. Documenting this behaviour wouldn't be a
problem and would not be a problem, I guess.

> --
> Thanks
>
> Bernd
>

--
Best Wishes,
Ashutosh Bapat
EnterpriseDB Corporation
The Postgres Database Company

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Kapila 2014-02-21 04:38:44 Re: walsender doesn't send keepalives when writes are pending
Previous Message Etsuro Fujita 2014-02-21 02:38:00 Re: inherit support for foreign tables