pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: sai.dulla@berkeley.edu
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15851: Concurrent Refresh of Materialized views not preserving the order of the underlying query
Date: Thu, 13 Jun 2019 20:28:54 -0400
Message-ID: <28145.1560472134@sss.pgh.pa.us> (raw)
In-Reply-To: <15851-576ac1c22033d304@postgresql.org>
References: <15851-576ac1c22033d304@postgresql.org>

PG Bug reporting form <noreply@postgresql.org> writes:
> Materialized view refresh concurrently with unique index: 
> Sort order is not the same as that of the output of the underlying query

I do not think this is a bug.  A matview is basically a table, and
tables don't guarantee to preserve row ordering.

Possibly we need to clarify the docs around this point.

A more aggressive approach would be to reject ORDER BY in the
query defining a matview, but perhaps that's too in-your-face...

			regards, tom lane





view thread (5+ messages)  latest in thread

Message-ID: <28145.1560472134@sss.pgh.pa.us>
Permalink:  ../28145.1560472134@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/28145.1560472134@sss.pgh.pa.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, sai.dulla@berkeley.edu
  Subject: Re: BUG #15851: Concurrent Refresh of Materialized views not preserving the order of the underlying query
  In-Reply-To: <28145.1560472134@sss.pgh.pa.us>
  References: <15851-576ac1c22033d304@postgresql.org> <28145.1560472134@sss.pgh.pa.us>

* 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