agora inbox for pgsql-sql@postgresql.org
help / color / mirror / Atom feedFrom: Bruce Momjian <bruce@momjian.us>
To: Martin Handsteiner <martin.handsteiner@sibvisions.com>
Cc: pgsql-sql@lists.postgresql.org <pgsql-sql@lists.postgresql.org>
Subject: Re: Optimizer Hint, to ignore limit and offset in optimizer plan
Date: Fri, 26 Jun 2020 19:59:54 -0400
Message-ID: <20200626235954.GA3324@momjian.us> (raw)
In-Reply-To: <VI1PR1001MB1423F5361320BB854708FD2FE8930@VI1PR1001MB1423.EURPRD10.PROD.OUTLOOK.COM>
References: <VI1PR1001MB1423F5361320BB854708FD2FE8930@VI1PR1001MB1423.EURPRD10.PROD.OUTLOOK.COM>
On Fri, Jun 26, 2020 at 08:49:19AM +0000, Martin Handsteiner wrote:
> Hello,
>
>
>
> I’m aware, that taking limit and offset into account of optimizer plan is not a
> bug.
>
> Nevertheless it is very often an unwanted feature.
>
> As the postgres db has the issue with not supporting cursors over commit/
> rollback, it is necessary to use the limit and offset mechanism.
Uh, have you considered WITH HOLD cursors:
WITH HOLD specifies that the cursor can continue to be used after the
transaction that created it successfully commits. WITHOUT HOLD
specifies that the cursor cannot be used outside of the transaction that
created it. If neither WITHOUT HOLD nor WITH HOLD is specified, WITHOUT
HOLD is the default.
--
Bruce Momjian <bruce@momjian.us> https://momjian.us
EnterpriseDB https://enterprisedb.com
The usefulness of a cup is in its emptiness, Bruce Lee
view thread (4+ messages) latest in thread
Message-ID: <20200626235954.GA3324@momjian.us>
Permalink: ../20200626235954.GA3324@momjian.us/
Also on: postgresql.org/message-id/20200626235954.GA3324@momjian.us
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-sql@postgresql.org
Cc: bruce@momjian.us, martin.handsteiner@sibvisions.com, pgsql-sql@lists.postgresql.org
Subject: Re: Optimizer Hint, to ignore limit and offset in optimizer plan
In-Reply-To: <20200626235954.GA3324@momjian.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox