agora inbox for pgsql-sql@postgresql.org  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: Erik Brandsberg <erik@heimdalldata.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Martin Handsteiner <martin.handsteiner@sibvisions.com>
Cc: Simon Riggs <simon@2ndquadrant.com>
Cc: pgsql-sql@lists.postgresql.org <pgsql-sql@lists.postgresql.org>
Subject: Re: AW: Optimizer Hint, to ignore limit and offset in optimizer plan
Date: Mon, 29 Jun 2020 11:48:01 -0400
Message-ID: <20200629154801.GA17530@momjian.us> (raw)
In-Reply-To: <CAFcck8H+4kWzYTc_TFzn1GF-1u39hU66RskSVbeWr12CGnzFaQ@mail.gmail.com>
References: <VI1PR1001MB1423F5361320BB854708FD2FE8930@VI1PR1001MB1423.EURPRD10.PROD.OUTLOOK.COM>
	<CANP8+jLYmta=WfEpbP-DihtNkD7VKhbEzMyOkYUjuBCvWEZfdw@mail.gmail.com>
	<VI1PR1001MB1423793F6E5624602BD2DEAFE86E0@VI1PR1001MB1423.EURPRD10.PROD.OUTLOOK.COM>
	<323666.1593441019@sss.pgh.pa.us>
	<CAFcck8H+4kWzYTc_TFzn1GF-1u39hU66RskSVbeWr12CGnzFaQ@mail.gmail.com>

On Mon, Jun 29, 2020 at 10:33:43AM -0400, Erik Brandsberg wrote:
> New request:  If order by is not specified with an order by clause, allow an
> option to be set that explicitly randomizes the results to break everything
> that relies on the order.  :)  This would primarily be used for QA work to find
> code that depends on an undefined order.

You mean LIMIT/OFFSET without ORDER BY?  I think issuing a warning,
perhaps when some "novice" mode is enabled, would work well.

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

Message-ID: <20200629154801.GA17530@momjian.us>
Permalink:  ../20200629154801.GA17530@momjian.us/
Also on:    postgresql.org/message-id/20200629154801.GA17530@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, erik@heimdalldata.com, tgl@sss.pgh.pa.us, martin.handsteiner@sibvisions.com, simon@2ndquadrant.com, pgsql-sql@lists.postgresql.org
  Subject: Re: AW: Optimizer Hint, to ignore limit and offset in optimizer plan
  In-Reply-To: <20200629154801.GA17530@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