pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Anders Steinlein <anders@e5r.no>
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: Different results from identical matviews
Date: Thu, 02 Jul 2020 18:25:38 -0400
Message-ID: <891329.1593728738@sss.pgh.pa.us> (raw)
In-Reply-To: <CAC35HNnZe9rx9X5TZxWJgdhk_5H_KHTMCT9jnZP2RDO84i7n4Q@mail.gmail.com>
References: <CAC35HNnNGavaZ=P=rUcwTwYEhfoyXDg32REXCRDgxBmC3No3nA@mail.gmail.com>
	<815598.1593648137@sss.pgh.pa.us>
	<CAC35HN=QPcSAw+Y47tOCZ51PysSgYzoO5bT7AK3q8VPvB8ZCcQ@mail.gmail.com>
	<849797.1593697489@sss.pgh.pa.us>
	<CAC35HNmfNmJNC34tKhWsLMx5D6wTJiQiKTuXQYDEBA2ADhRMUg@mail.gmail.com>
	<854382.1593704633@sss.pgh.pa.us>
	<CAC35HN=Nj0fpZ-i=LEb8JxN6RtD5rZoE+zjLGb+JdcajRNby=g@mail.gmail.com>
	<889660.1593726293@sss.pgh.pa.us>
	<CAC35HNnZe9rx9X5TZxWJgdhk_5H_KHTMCT9jnZP2RDO84i7n4Q@mail.gmail.com>

Anders Steinlein <anders@e5r.no> writes:
> Am I right in thinking that we should actually go over (i.e. re-create) all
> functions and views defined before this dump/restore where we're using JOIN
> ... USING (citext_column)? We most definitely have many more such cases,
> since this is the common (perhaps naive) way we've written joins (unless
> there are obvious reasons to be explicit). :-/

If it's not clear to you how this matview came to be different from
the rest, then it certainly seems likely that other ones might have
the same disease.

Note that functions don't really have this sort of issue, since they're
just stored as text.  Only a view or matview would preserve creation-time
decisions about interpretation.

			regards, tom lane





view thread (21+ messages)

Message-ID: <891329.1593728738@sss.pgh.pa.us>
Permalink:  ../891329.1593728738@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/891329.1593728738@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-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, anders@e5r.no
  Subject: Re: Different results from identical matviews
  In-Reply-To: <891329.1593728738@sss.pgh.pa.us>
  References: <CAC35HNnNGavaZ=P=rUcwTwYEhfoyXDg32REXCRDgxBmC3No3nA@mail.gmail.com> <815598.1593648137@sss.pgh.pa.us> <CAC35HN=QPcSAw+Y47tOCZ51PysSgYzoO5bT7AK3q8VPvB8ZCcQ@mail.gmail.com> <849797.1593697489@sss.pgh.pa.us> <CAC35HNmfNmJNC34tKhWsLMx5D6wTJiQiKTuXQYDEBA2ADhRMUg@mail.gmail.com> <854382.1593704633@sss.pgh.pa.us> <CAC35HN=Nj0fpZ-i=LEb8JxN6RtD5rZoE+zjLGb+JdcajRNby=g@mail.gmail.com> <889660.1593726293@sss.pgh.pa.us> <CAC35HNnZe9rx9X5TZxWJgdhk_5H_KHTMCT9jnZP2RDO84i7n4Q@mail.gmail.com> <891329.1593728738@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