Re: Using Views as Tables

From: Simon Riggs <simon(at)2ndquadrant(dot)com>
To: David L <segedunum(at)actuaria(dot)co(dot)uk>
Cc: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>, pgsql-admin(at)postgresql(dot)org, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: Using Views as Tables
Date: 2017-01-09 08:28:58
Message-ID: CANP8+jJoTsFa+WQxBF4XTQQAWD9Q=vakKfiWhN7_M=qABXUcdQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

> On 9 Jan 2017 1:46 a.m., "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com> wrote:

>> I.e. the query planner does NOTHING different for a select from a view
>> than if you just run the query that makes the up the view by hand.

On 9 January 2017 at 08:22, David L <segedunum(at)actuaria(dot)co(dot)uk> wrote:
> Yes I know. That's the point.

At the moment, nobody can see a reason for the behaviour you are describing.

To take this further you'd need to show evidence or a repeatable test
that showed the effect you are describing is real, even if nobody here
can understand what would be causing it, yet.

Perhaps try executing your test case a million times and report on any
tests that are very substantially longer in the way you describe?

--
Simon Riggs http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Scott Mead 2017-01-09 14:14:41 Re: Issue with pgAdmin4 UI
Previous Message David L 2017-01-09 08:22:42 Re: Using Views as Tables